seike460 / serverless-performance-handson

4 stars 1 forks source link

手順3のsam deploy de #10

Open hideokamoto-stripe opened 6 months ago

hideokamoto-stripe commented 6 months ago
CloudFormation events from stack operations (refresh every 5.0 seconds)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ResourceStatus                                   ResourceType                                     LogicalResourceId                                ResourceStatusReason                           
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CREATE_IN_PROGRESS                               AWS::SQS::Queue                                  PurchaseQueue                                    -                                              
CREATE_IN_PROGRESS                               AWS::DynamoDB::Table                             PurchaseHistoryTable                             -                                              
CREATE_FAILED                                    AWS::DynamoDB::Table                             PurchaseHistoryTable                             PurchaseHistory already exists in stack        
                                                                                                                                                   arn:aws:cloudformation:ap-                     
                                                                                                                                                   northeast-1:999999:stack/serverless-     
                                                                                                                                                   performance-                                   
                                                                                                                                                   handson/54ba5030-d825-11ee-b3e2-06a5d3aeb2d1   
CREATE_FAILED                                    AWS::SQS::Queue                                  PurchaseQueue                                    Resource creation cancelled                    
ROLLBACK_IN_PROGRESS                             AWS::CloudFormation::Stack                       serverless-ec-shop                               The following resource(s) failed to create:    
                                                                                                                                                   [PurchaseHistoryTable, PurchaseQueue].         
                                                                                                                                                   Rollback requested by user.                    
DELETE_COMPLETE                                  AWS::DynamoDB::Table                             PurchaseHistoryTable                             -   
hideokamoto-stripe commented 6 months ago

手順1で作ったものを無視して、新しく作ろうとしているように見える。


CloudFormation stack changeset
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Operation                                        LogicalResourceId                                ResourceType                                     Replacement                                    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+ Add                                            HandsonApiDeployment8570e8341e                   AWS::ApiGateway::Deployment                      N/A                                            
+ Add                                            HandsonApiProdStage                              AWS::ApiGateway::Stage                           N/A                                            
+ Add                                            HandsonApi                                       AWS::ApiGateway::RestApi                         N/A                                            
+ Add                                            HistoryHandlerHistoryEventPermissionProd         AWS::Lambda::Permission                          N/A                                            
+ Add                                            HistoryHandlerRole                               AWS::IAM::Role                                   N/A                                            
+ Add                                            HistoryHandler                                   AWS::Lambda::Function                            N/A                                            
+ Add                                            PurchaseHistoryTable                             AWS::DynamoDB::Table                             N/A                                            
+ Add                                            PurchaseProcessorQueueEvent                      AWS::Lambda::EventSourceMapping                  N/A                                            
+ Add                                            PurchaseProcessorRole                            AWS::IAM::Role                                   N/A                                            
+ Add                                            PurchaseProcessor                                AWS::Lambda::Function                            N/A                                            
+ Add                                            PurchaseQueue                                    AWS::SQS::Queue                                  N/A                                            
+ Add                                            PurchaseRequestHandlerPurchaseRequestEventPerm   AWS::Lambda::Permission                          N/A                                            
                                                 issionProd                                                                                                                                       
+ Add                                            PurchaseRequestHandlerRole                       AWS::IAM::Role                                   N/A                                            
+ Add                                            PurchaseRequestHandler                           AWS::Lambda::Function                            N/A                                            
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hideokamoto-stripe commented 6 months ago
スクリーンショット 2024-03-02 9 24 36

なんでスタック二つできてるんだこれ・・・?

hideokamoto-stripe commented 6 months ago
[default]
[default.global.parameters]
-stack_name = "serverless-ec-shop"
+stack_name = "serverless-performance-handson"

samconfig.tomlのDiffをつぶしてみる

hideokamoto-stripe commented 6 months ago

samconfig.tomlっぽいなこれ・・・

CloudFormation stack changeset
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Operation                                        LogicalResourceId                                ResourceType                                     Replacement                                    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+ Add                                            HandsonApiDeployment8570e8341e                   AWS::ApiGateway::Deployment                      N/A                                            
+ Add                                            HandsonApiProdStage                              AWS::ApiGateway::Stage                           N/A                                            
+ Add                                            HandsonApi                                       AWS::ApiGateway::RestApi                         N/A                                            
+ Add                                            PurchaseProcessorQueueEvent                      AWS::Lambda::EventSourceMapping                  N/A                                            
+ Add                                            PurchaseProcessorRole                            AWS::IAM::Role                                   N/A                                            
+ Add                                            PurchaseProcessor                                AWS::Lambda::Function                            N/A                                            
+ Add                                            PurchaseQueue                                    AWS::SQS::Queue                                  N/A                                            
+ Add                                            PurchaseRequestHandlerPurchaseRequestEventPerm   AWS::Lambda::Permission                          N/A                                            
                                                 issionProd                                                                                                                                       
+ Add                                            PurchaseRequestHandlerRole                       AWS::IAM::Role                                   N/A                                            
+ Add                                            PurchaseRequestHandler                           AWS::Lambda::Function                            N/A                                            
* Modify                                         HistoryHandlerHistoryEventPermissionProd         AWS::Lambda::Permission                          True                                           
* Modify                                         HistoryHandler                                   AWS::Lambda::Function                            False                                          
- Delete                                         PurchaseHandlerPurchaseEventPermissionProd       AWS::Lambda::Permission                          N/A                                            
- Delete                                         PurchaseHandlerRole                              AWS::IAM::Role                                   N/A                                            
- Delete                                         PurchaseHandler                                  AWS::Lambda::Function                            N/A                                            
- Delete                                         ServerlessRestApiDeployment2593192fda            AWS::ApiGateway::Deployment                      N/A                                            
- Delete                                         ServerlessRestApiProdStage                       AWS::ApiGateway::Stage                           N/A                                            
- Delete                                         ServerlessRestApi                                AWS::ApiGateway::RestApi                         N/A                                            
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------