You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
git clone
cd 0.3-Replacing-The-HTTP-Web-Server-For-Traditional-PHP-Frameworks
composer require bref/bref
sam deploy -g
At this stage I tried a couple different options:
Configuring SAM deploy
======================
Looking for config file [samconfig.toml] : Not found
Setting default arguments for 'sam deploy'
=========================================
Stack Name [sam-app]: php-demo
AWS Region [us-west-2]:
#Shows you resources changes to be deployed and require a 'Y' to initiate deploy
Confirm changes before deploy [y/N]:
#SAM needs permission to be able to create roles to connect to the resources in your template
Allow SAM CLI IAM role creation [Y/n]:
CatchAllLambdaFunction may not have authorization defined, Is this okay? [y/N]:
Error: Security Constraints Not Satisfied!
Since this immediately exited I tried answering yes:
Configuring SAM deploy
======================
Looking for config file [samconfig.toml] : Not found
Setting default arguments for 'sam deploy'
=========================================
Stack Name [sam-app]: php-demo
AWS Region [us-west-2]:
#Shows you resources changes to be deployed and require a 'Y' to initiate deploy
Confirm changes before deploy [y/N]:
#SAM needs permission to be able to create roles to connect to the resources in your template
Allow SAM CLI IAM role creation [Y/n]:
CatchAllLambdaFunction may not have authorization defined, Is this okay? [y/N]: y
CatchAllLambdaFunction may not have authorization defined, Is this okay? [y/N]: y
Save arguments to configuration file [Y/n]:
SAM configuration file [samconfig.toml]:
SAM configuration environment [default]:
Looking for resources needed for deployment: Found!
Managed S3 bucket: aws-sam-cli-managed-default-samclisourcebucket-1xs0nt9a39zcd
A different default S3 bucket can be set in samconfig.toml
Saved arguments to config file
Running 'sam deploy' for future deployments will use the parameters saved above.
The above parameters can be changed by modifying samconfig.toml
Learn more about samconfig.toml syntax at
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-config.html
Uploading to php-demo/e94ea55525 262144 / 1046025 (25.06Uploading to php-demo/e94ea55525 524288 / 1046025 (50.12Uploading to php-demo/e94ea55525 786432 / 1046025 (75.18Uploading to php-demo/e94ea55525 1046025 / 1046025 (100.00%)
Deploying with following values
===============================
Stack name : php-demo
Region : us-west-2
Confirm changeset : False
Deployment s3 bucket : aws-sam-cli-managed-default-samclisourcebucket-1xs0nt9a39zcd
Capabilities : ["CAPABILITY_IAM"]
Parameter overrides : {}
Signing Profiles : {}
Initiating deployment
=====================
Uploading to php-demo/2c1a4de555204.template 3427 / 3427 (100.00%)
Waiting for changeset to be created..
CloudFormation stack changeset
-------------------------------------------------------------------------------------------------
Operation LogicalResourceId ResourceType Replacement
-------------------------------------------------------------------------------------------------
+ Add AssetsBucketPolicy AWS::S3::BucketPolicy N/A
+ Add Assets AWS::S3::Bucket N/A
+ Add CatchAllLambdaFunction AWS::Lambda::Permissio N/A
DynamicRequestsProxyPe n
rmission
+ Add CatchAllLambdaFunction AWS::Lambda::Permissio N/A
DynamicRequestsRootPer n
mission
+ Add CatchAllLambdaFunction AWS::IAM::Role N/A
Role
+ Add CatchAllLambdaFunction AWS::Lambda::Function N/A
+ Add Cloudfrontdistribution AWS::CloudFront::Distr N/A
ibution
+ Add S3OriginIdentityExampl AWS::CloudFront::Cloud N/A
e FrontOriginAccessIdent
ity
+ Add ServerlessHttpApiApiGa AWS::ApiGatewayV2::Sta N/A
tewayDefaultStage ge
+ Add ServerlessHttpApi AWS::ApiGatewayV2::Api N/A
-------------------------------------------------------------------------------------------------
Changeset created successfully. arn:aws:cloudformation:us-west-2:xxx:changeSet/samcli-deploy555/5bb555fb58
2021-12-21 09:46:44 - Waiting for stack create/update to complete
CloudFormation events from changeset
-------------------------------------------------------------------------------------------------
ResourceStatus ResourceType LogicalResourceId ResourceStatusReason
-------------------------------------------------------------------------------------------------
CREATE_IN_PROGRESS AWS::CloudFront::Cloud S3OriginIdentityExampl -
FrontOriginAccessIdent e
ity
CREATE_IN_PROGRESS AWS::IAM::Role CatchAllLambdaFunction -
Role
CREATE_IN_PROGRESS AWS::IAM::Role CatchAllLambdaFunction Resource creation
Role Initiated
CREATE_IN_PROGRESS AWS::S3::Bucket Assets -
CREATE_FAILED AWS::IAM::Role CatchAllLambdaFunction Resource creation
Role cancelled
CREATE_FAILED AWS::S3::Bucket Assets php-example-assets-
for-php-app-example-3
already exists
ROLLBACK_IN_PROGRESS AWS::CloudFormation::S php-demo The following
tack resource(s) failed to
create: [CatchAllLambd
aFunctionRole, Assets,
S3OriginIdentityExampl
e]. Rollback requested
by user.
CREATE_FAILED AWS::CloudFront::Cloud S3OriginIdentityExampl Resource creation
FrontOriginAccessIdent e cancelled
ity
DELETE_IN_PROGRESS AWS::IAM::Role CatchAllLambdaFunction -
Role
DELETE_IN_PROGRESS AWS::CloudFront::Cloud S3OriginIdentityExampl -
FrontOriginAccessIdent e
ity
DELETE_COMPLETE AWS::S3::Bucket Assets -
DELETE_COMPLETE AWS::IAM::Role CatchAllLambdaFunction -
Role
DELETE_COMPLETE AWS::CloudFront::Cloud S3OriginIdentityExampl -
FrontOriginAccessIdent e
ity
ROLLBACK_COMPLETE AWS::CloudFormation::S php-demo -
tack
-------------------------------------------------------------------------------------------------
Error: Failed to create/update the stack: php-demo, Waiter StackCreateComplete failed: Waiter encountered a terminal failure state: For expression "Stacks[].StackStatus" we matched expected path: "ROLLBACK_COMPLETE" at least once
The text was updated successfully, but these errors were encountered:
Steps I took:
At this stage I tried a couple different options:
Since this immediately exited I tried answering yes:
The text was updated successfully, but these errors were encountered: