aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

aws deploy --no-fail-on-empty-changeset not working

Open softreigns opened this issue 7 years ago • 4 comments

Still getting this error : aws cli version : aws-cli/1.16.121 Python/3.6.7 Linux/4.15.0-20-generic botocore/1.12.111

aws cloudformation deploy --stack-name test --capabilities CAPABILITY_NAMED_IAM --template-file test.yaml --parameter-overrides paramk=v --no-fail-on-empty-changeset

Waiting for changeset to be created..

Failed to create the changeset: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state Status: FAILED. Reason: No updates are to be performed.

softreigns avatar Apr 03 '19 20:04 softreigns

@softreigns - Thanks for reporting this issue again and providing the CLI version. Looks like it is related to closed issue #3123 and to PR #3153. Please provide the debug logs again so we can dig into the problem.

@sanathkr - What are your thoughts?

justnance avatar May 02 '19 06:05 justnance

ya, this is has happened consistently on above version set. Luckily i have the debug logs.

  • aws cloudformation deploy --debug --stack-name myDynamodbStack --capabilities CAPABILITY_NAMED_IAM --template-file myDynamodb.yaml --parameter-overrides Environment=dev --no-fail-on-empty-changeset 2019-04-03 16:33:10,783 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.14.44 Python/3.6.7 Linux/4.15.0-20-generic botocore/1.8.48 2019-04-03 16:33:10,783 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['cloudformation', 'deploy', '--debug', '--stack-name', 'myDynamodbStack', '--capabilities', 'CAPABILITY_NAMED_IAM', '--template-file', 'myDynamodb.yaml', '--parameter-overrides', 'Environment=dev', '--no-fail-on-empty-changeset'] 2019-04-03 16:33:10,783 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x7f82d16219d8> 2019-04-03 16:33:10,783 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,783 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x7f82d2125048> 2019-04-03 16:33:10,783 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable credentials_file from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable config_file from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_timeout from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_num_attempts from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x7f82d1796488> 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,784 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults. 2019-04-03 16:33:10,785 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python3/dist-packages/botocore/data/cloudformation/2010-05-15/service-2.json 2019-04-03 16:33:10,788 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.cloudformation: calling handler <function register_retries_for_service at 0x7f82d2ab7c80> 2019-04-03 16:33:10,788 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: cloudformation 2019-04-03 16:33:10,790 - MainThread - botocore.hooks - DEBUG - Event building-command-table.cloudformation: calling handler <function inject_commands at 0x7f82d2130048> 2019-04-03 16:33:10,790 - MainThread - botocore.hooks - DEBUG - Event building-command-table.cloudformation: calling handler <function add_waiters at 0x7f82d162ac80> 2019-04-03 16:33:10,793 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python3/dist-packages/botocore/data/cloudformation/2010-05-15/waiters-2.json 2019-04-03 16:33:10,794 - MainThread - botocore.hooks - DEBUG - Event building-command-table.deploy: calling handler <function inject_commands at 0x7f82d48030d0> 2019-04-03 16:33:10,794 - MainThread - botocore.hooks - DEBUG - Event building-command-table.deploy: calling handler <function add_waiters at 0x7f82d162ac80> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.template-file: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.deploy: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f82d216a710> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.stack-name: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.deploy: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f82d216a710> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.s3-bucket: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.force-upload: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.deploy: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f82d216a710> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.s3-prefix: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.kms-key-id: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.parameter-overrides: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,796 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.deploy: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f82d216a710> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.capabilities: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.deploy: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f82d216a710> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.anonymous: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.role-arn: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.notification-arns: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.fail-on-empty-changeset: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.deploy: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f82d216a710> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.tags: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.deploy: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f82d216a710> 2019-04-03 16:33:10,797 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.deploy.anonymous: calling handler <function uri_param at 0x7f82d21b4488> 2019-04-03 16:33:10,797 - MainThread - botocore.session - DEBUG - Loading variable region from environment with value 'us-west-2'. 2019-04-03 16:33:10,797 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,797 - MainThread - botocore.session - DEBUG - Loading variable ca_bundle from defaults. 2019-04-03 16:33:10,797 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,797 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults. 2019-04-03 16:33:10,798 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env 2019-04-03 16:33:10,798 - MainThread - botocore.credentials - INFO - Found credentials in environment variables. 2019-04-03 16:33:10,798 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python3/dist-packages/botocore/data/endpoints.json 2019-04-03 16:33:10,801 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults. 2019-04-03 16:33:10,801 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f82d2aa32f0> 2019-04-03 16:33:10,802 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.cloudformation: calling handler <function add_generate_presigned_url at 0x7f82d2afb048> 2019-04-03 16:33:10,802 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None 2019-04-03 16:33:10,806 - MainThread - botocore.endpoint - DEBUG - Setting cloudformation timeout as (60, 60) 2019-04-03 16:33:10,807 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: cloudformation 2019-04-03 16:33:10,817 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.cloudformation.DescribeStacks: calling handler <function generate_idempotent_uuid at 0x7f82d2ab7620> 2019-04-03 16:33:10,817 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=DescribeStacks) (verify_ssl=True) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'aws-cli/1.14.44 Python/3.6.7 Linux/4.15.0-20-generic botocore/1.8.48'}, 'body': {'Action': 'DescribeStacks', 'Version': '2010-05-15', 'StackName': 'myDynamodbStack'}, 'url': 'https://cloudformation.us-west-2.amazonaws.com/', 'context': {'client_region': 'us-west-2', 'client_config': <botocore.config.Config object at 0x7f82d1403c88>, 'has_streaming_input': False, 'auth_type': None}} 2019-04-03 16:33:10,817 - MainThread - botocore.hooks - DEBUG - Event request-created.cloudformation.DescribeStacks: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f82d1403ba8>> 2019-04-03 16:33:10,817 - MainThread - botocore.hooks - DEBUG - Event choose-signer.cloudformation.DescribeStacks: calling handler <function set_operation_specific_signer at 0x7f82d2ab7510> 2019-04-03 16:33:10,818 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2019-04-03 16:33:10,818 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST /

content-type:application/x-www-form-urlencoded; charset=utf-8 host:cloudformation.us-west-2.amazonaws.com x-amz-date:20190403T233310Z

content-type;host;x-amz-date 4f536c1e9a84620a2608c7dbdf03ac8360e267d7defb680a99590601f8f7e165 2019-04-03 16:33:10,818 - MainThread - botocore.auth - DEBUG - StringToSign: AWS4-HMAC-SHA256 20190403T233310Z 20190403/us-west-2/cloudformation/aws4_request 371af393c30034d307285b87396c2582a2c985033fd8862c726c26e6b3c4183b 2019-04-03 16:33:10,818 - MainThread - botocore.auth - DEBUG - Signature: 6b4a567a7e52a4b7c02025fdac0269477f0abf9bb9901a37317f051ec7aeafcc 2019-04-03 16:33:10,818 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]> 2019-04-03 16:33:10,984 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'd7d88738-5668-11e9-adcf-cdde12b9fa70', 'Content-Type': 'text/xml', 'Content-Length': '1678', 'Date': 'Wed, 03 Apr 2019 23:33:10 GMT'} 2019-04-03 16:33:10,984 - MainThread - botocore.parsers - DEBUG - Response body: b'\n \n \n \n \n \n DynamoDbTables\n db1, db2\n \n \n \n CAPABILITY_NAMED_IAM\n \n 2019-04-03T23:25:19.894Z\n \n arn:aws:cloudformation:us-west-2:364134284637:stack/myDynamodbStack/bf09edf0-5667-11e9-bb42-0a4c6c316150\n myDynamodbStack\n CREATE_COMPLETE\n false\n \n \n \n NOT_CHECKED\n \n false\n 2019-04-03T23:25:25.355Z\n \n \n Environment\n dev\n \n \n arn:aws:cloudformation:us-west-2:364134284637:changeSet/awscli-cloudformation-package-deploy-1554333919/a6583c8a-ab95-4e50-adea-1851e2085422\n \n \n \n \n d7d88738-5668-11e9-adcf-cdde12b9fa70\n \n\n' 2019-04-03 16:33:10,985 - MainThread - botocore.hooks - DEBUG - Event needs-retry.cloudformation.DescribeStacks: calling handler <botocore.retryhandler.RetryHandler object at 0x7f82d15645c0> 2019-04-03 16:33:10,985 - MainThread - botocore.retryhandler - DEBUG - No retry needed. 2019-04-03 16:33:10,985 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.cloudformation.GetTemplateSummary: calling handler <function generate_idempotent_uuid at 0x7f82d2ab7620> 2019-04-03 16:33:10,985 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=GetTemplateSummary) (verify_ssl=True) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'aws-cli/1.14.44 Python/3.6.7 Linux/4.15.0-20-generic botocore/1.8.48'}, 'body': {'Action': 'GetTemplateSummary', 'Version': '2010-05-15', 'StackName': 'myDynamodbStack'}, 'url': 'https://cloudformation.us-west-2.amazonaws.com/', 'context': {'client_region': 'us-west-2', 'client_config': <botocore.config.Config object at 0x7f82d1403c88>, 'has_streaming_input': False, 'auth_type': None}} 2019-04-03 16:33:10,985 - MainThread - botocore.hooks - DEBUG - Event request-created.cloudformation.GetTemplateSummary: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f82d1403ba8>> 2019-04-03 16:33:10,985 - MainThread - botocore.hooks - DEBUG - Event choose-signer.cloudformation.GetTemplateSummary: calling handler <function set_operation_specific_signer at 0x7f82d2ab7510> 2019-04-03 16:33:10,986 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2019-04-03 16:33:10,986 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST /

content-type:application/x-www-form-urlencoded; charset=utf-8 host:cloudformation.us-west-2.amazonaws.com x-amz-date:20190403T233310Z

content-type;host;x-amz-date fc2244fb1b924f7c0c4c3a505a9fa82509449db154ec96cba4523d0f1932485c 2019-04-03 16:33:10,986 - MainThread - botocore.auth - DEBUG - StringToSign: AWS4-HMAC-SHA256 20190403T233310Z 20190403/us-west-2/cloudformation/aws4_request 82191eb0ab86bdfb25081a8b492c3038dab278bef9a41888a7d223485ff90e93 2019-04-03 16:33:10,986 - MainThread - botocore.auth - DEBUG - Signature: 7422cb5e1f39aa70076b87305690208339be20eed737b274d5f585610f53da8f 2019-04-03 16:33:10,986 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]> 2019-04-03 16:33:11,136 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'd7e2724a-5668-11e9-adcf-cdde12b9fa70', 'Content-Type': 'text/xml', 'Content-Length': '723', 'Date': 'Wed, 03 Apr 2019 23:33:11 GMT'} 2019-04-03 16:33:11,136 - MainThread - botocore.parsers - DEBUG - Response body: b'\n \n \n AWS::DynamoDB::Table\n AWS::DynamoDB::Table\n \n 2010-09-09\n \n \n String\n \n false\n Environment\n PrimaryKey Name\n \n \n \n \n d7e2724a-5668-11e9-adcf-cdde12b9fa70\n \n\n' 2019-04-03 16:33:11,137 - MainThread - botocore.hooks - DEBUG - Event needs-retry.cloudformation.GetTemplateSummary: calling handler <botocore.retryhandler.RetryHandler object at 0x7f82d15645c0> 2019-04-03 16:33:11,137 - MainThread - botocore.retryhandler - DEBUG - No retry needed. 2019-04-03 16:33:11,137 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.cloudformation.CreateChangeSet: calling handler <function generate_idempotent_uuid at 0x7f82d2ab7620> 2019-04-03 16:33:11,137 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=CreateChangeSet) (verify_ssl=True) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'aws-cli/1.14.44 Python/3.6.7 Linux/4.15.0-20-generic botocore/1.8.48'}, 'body': {'Action': 'CreateChangeSet', 'Version': '2010-05-15', 'ChangeSetName': 'awscli-cloudformation-package-deploy-1554334390', 'StackName': 'myDynamodbStack', 'TemplateBody': 'AWSTemplateFormatVersion: '2010-09-09'\nTransform: 'AWS::Serverless-2016-10-31'\nParameters:\n Environment:\n Description: PrimaryKey Name\n Type: String\n AllowedPattern: "[a-zA-Z0-9]*"\n\nResources:\n DeviceInfoDynamoDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n TableName: !Sub 'test-${Environment}-DeviceDB'\n AttributeDefinitions:\n - AttributeName: serialNumber\n AttributeType: S\n KeySchema:\n - AttributeName: serialNumber\n KeyType: HASH\n ProvisionedThroughput:\n ReadCapacityUnits: '5'\n WriteCapacityUnits: '5'\n\n StoreInfoDynamoDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n TableName: !Sub 'test-${Environment}-StoreDB'\n AttributeDefinitions:\n - AttributeName: storeId\n AttributeType: S\n KeySchema:\n - AttributeName: storeId\n KeyType: HASH\n ProvisionedThroughput:\n ReadCapacityUnits: '5'\n WriteCapacityUnits: '5'\n\n \nOutputs:\n DynamoDbTables:\n Value: !Join\n - ''\n - - !Ref 'DeviceInfoDynamoDBTable'\n - ', '\n - !Ref 'StoreInfoDynamoDBTable'', 'ChangeSetType': 'UPDATE', 'Parameters.member.1.ParameterKey': 'Environment', 'Parameters.member.1.ParameterValue': 'dev', 'Capabilities.member.1': 'CAPABILITY_NAMED_IAM', 'Description': 'Created by AWS CLI at 2019-04-03T23:33:10.817037 UTC', 'Tags': ''}, 'url': 'https://cloudformation.us-west-2.amazonaws.com/', 'context': {'client_region': 'us-west-2', 'client_config': <botocore.config.Config object at 0x7f82d1403c88>, 'has_streaming_input': False, 'auth_type': None}} 2019-04-03 16:33:11,137 - MainThread - botocore.hooks - DEBUG - Event request-created.cloudformation.CreateChangeSet: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f82d1403ba8>> 2019-04-03 16:33:11,137 - MainThread - botocore.hooks - DEBUG - Event choose-signer.cloudformation.CreateChangeSet: calling handler <function set_operation_specific_signer at 0x7f82d2ab7510> 2019-04-03 16:33:11,139 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2019-04-03 16:33:11,139 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST /

content-type:application/x-www-form-urlencoded; charset=utf-8 host:cloudformation.us-west-2.amazonaws.com x-amz-date:20190403T233311Z

content-type;host;x-amz-date 0af609e8e00ca161239f0ba421d9c948e171c053a86086444a25056605e055f1 2019-04-03 16:33:11,139 - MainThread - botocore.auth - DEBUG - StringToSign: AWS4-HMAC-SHA256 20190403T233311Z 20190403/us-west-2/cloudformation/aws4_request 8395a6186f2fab1f5034266c4cefa917aae655359d293013ea16a62a3826c81c 2019-04-03 16:33:11,139 - MainThread - botocore.auth - DEBUG - Signature: df9d0711a95bcf83fb54099b2d0058cf48be9a3e78dc53c4281936f384f952d1 2019-04-03 16:33:11,142 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]> 2019-04-03 16:33:11,406 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'd7fa1904-5668-11e9-adcf-cdde12b9fa70', 'Content-Type': 'text/xml', 'Content-Length': '567', 'Date': 'Wed, 03 Apr 2019 23:33:11 GMT'} 2019-04-03 16:33:11,413 - MainThread - botocore.parsers - DEBUG - Response body: b'\n \n arn:aws:cloudformation:us-west-2:364134284637:stack/myDynamodbStack/bf09edf0-5667-11e9-bb42-0a4c6c316150\n arn:aws:cloudformation:us-west-2:364134284637:changeSet/awscli-cloudformation-package-deploy-1554334390/0a7a5097-2a8d-4b98-96f0-44d2a4fc9b0f\n \n \n d7fa1904-5668-11e9-adcf-cdde12b9fa70\n \n\n' 2019-04-03 16:33:11,413 - MainThread - botocore.hooks - DEBUG - Event needs-retry.cloudformation.CreateChangeSet: calling handler <botocore.retryhandler.RetryHandler object at 0x7f82d15645c0> 2019-04-03 16:33:11,413 - MainThread - botocore.retryhandler - DEBUG - No retry needed.

Waiting for changeset to be created.. 2019-04-03 16:33:11,414 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.cloudformation.DescribeChangeSet: calling handler <function generate_idempotent_uuid at 0x7f82d2ab7620> 2019-04-03 16:33:11,414 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=DescribeChangeSet) (verify_ssl=True) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'aws-cli/1.14.44 Python/3.6.7 Linux/4.15.0-20-generic botocore/1.8.48'}, 'body': {'Action': 'DescribeChangeSet', 'Version': '2010-05-15', 'ChangeSetName': 'arn:aws:cloudformation:us-west-2:364134284637:changeSet/awscli-cloudformation-package-deploy-1554334390/0a7a5097-2a8d-4b98-96f0-44d2a4fc9b0f', 'StackName': 'myDynamodbStack'}, 'url': 'https://cloudformation.us-west-2.amazonaws.com/', 'context': {'client_region': 'us-west-2', 'client_config': <botocore.config.Config object at 0x7f82d1403c88>, 'has_streaming_input': False, 'auth_type': None}} 2019-04-03 16:33:11,414 - MainThread - botocore.hooks - DEBUG - Event request-created.cloudformation.DescribeChangeSet: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f82d1403ba8>> 2019-04-03 16:33:11,414 - MainThread - botocore.hooks - DEBUG - Event choose-signer.cloudformation.DescribeChangeSet: calling handler <function set_operation_specific_signer at 0x7f82d2ab7510> 2019-04-03 16:33:11,415 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2019-04-03 16:33:11,415 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST /

content-type:application/x-www-form-urlencoded; charset=utf-8 host:cloudformation.us-west-2.amazonaws.com x-amz-date:20190403T233311Z

content-type;host;x-amz-date 6ce9d0bd91e6a110f9a3e868d91a2956b146e9ed34ae5cf4d026b567530c14e6 2019-04-03 16:33:11,415 - MainThread - botocore.auth - DEBUG - StringToSign: AWS4-HMAC-SHA256 20190403T233311Z 20190403/us-west-2/cloudformation/aws4_request c873dfe64e4f9fefba152437ba70fae5e9a73f8239e2f7616fa6c726b2158f9f 2019-04-03 16:33:11,415 - MainThread - botocore.auth - DEBUG - Signature: 2abd036671cc11b7a3c3599280362e68e6ed37419ba9bb1d86790f1c2dc5b2dc 2019-04-03 16:33:11,415 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]> 2019-04-03 16:33:11,500 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'd824846e-5668-11e9-adcf-cdde12b9fa70', 'Content-Type': 'text/xml', 'Content-Length': '1271', 'Date': 'Wed, 03 Apr 2019 23:33:11 GMT'} 2019-04-03 16:33:11,500 - MainThread - botocore.parsers - DEBUG - Response body: b'\n \n \n CAPABILITY_NAMED_IAM\n \n 2019-04-03T23:33:11.384Z\n \n arn:aws:cloudformation:us-west-2:364134284637:stack/myDynamodbStack/bf09edf0-5667-11e9-bb42-0a4c6c316150\n UNAVAILABLE\n myDynamodbStack\n \n Created by AWS CLI at 2019-04-03T23:33:10.817037 UTC\n awscli-cloudformation-package-deploy-1554334390\n \n \n \n Environment\n dev\n \n \n arn:aws:cloudformation:us-west-2:364134284637:changeSet/awscli-cloudformation-package-deploy-1554334390/0a7a5097-2a8d-4b98-96f0-44d2a4fc9b0f\n CREATE_PENDING\n \n \n d824846e-5668-11e9-adcf-cdde12b9fa70\n \n\n' 2019-04-03 16:33:11,501 - MainThread - botocore.hooks - DEBUG - Event needs-retry.cloudformation.DescribeChangeSet: calling handler <botocore.retryhandler.RetryHandler object at 0x7f82d15645c0> 2019-04-03 16:33:11,501 - MainThread - botocore.retryhandler - DEBUG - No retry needed. 2019-04-03 16:33:16,505 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.cloudformation.DescribeChangeSet: calling handler <function generate_idempotent_uuid at 0x7f82d2ab7620> 2019-04-03 16:33:16,505 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=DescribeChangeSet) (verify_ssl=True) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'aws-cli/1.14.44 Python/3.6.7 Linux/4.15.0-20-generic botocore/1.8.48'}, 'body': {'Action': 'DescribeChangeSet', 'Version': '2010-05-15', 'ChangeSetName': 'arn:aws:cloudformation:us-west-2:364134284637:changeSet/awscli-cloudformation-package-deploy-1554334390/0a7a5097-2a8d-4b98-96f0-44d2a4fc9b0f', 'StackName': 'myDynamodbStack'}, 'url': 'https://cloudformation.us-west-2.amazonaws.com/', 'context': {'client_region': 'us-west-2', 'client_config': <botocore.config.Config object at 0x7f82d1403c88>, 'has_streaming_input': False, 'auth_type': None}} 2019-04-03 16:33:16,506 - MainThread - botocore.hooks - DEBUG - Event request-created.cloudformation.DescribeChangeSet: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f82d1403ba8>> 2019-04-03 16:33:16,506 - MainThread - botocore.hooks - DEBUG - Event choose-signer.cloudformation.DescribeChangeSet: calling handler <function set_operation_specific_signer at 0x7f82d2ab7510> 2019-04-03 16:33:16,507 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2019-04-03 16:33:16,507 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST /

content-type:application/x-www-form-urlencoded; charset=utf-8 host:cloudformation.us-west-2.amazonaws.com x-amz-date:20190403T233316Z

content-type;host;x-amz-date 6ce9d0bd91e6a110f9a3e868d91a2956b146e9ed34ae5cf4d026b567530c14e6 2019-04-03 16:33:16,507 - MainThread - botocore.auth - DEBUG - StringToSign: AWS4-HMAC-SHA256 20190403T233316Z 20190403/us-west-2/cloudformation/aws4_request 3dd99ce7275c38af336699330b0b8f185225834a2ea96045e4684149bd4da9dc 2019-04-03 16:33:16,507 - MainThread - botocore.auth - DEBUG - Signature: 3e39dd5ba9e2ccfdb85758f8f7c0b7bd7e312251d7dfa0c16a6385dd697bbc98 2019-04-03 16:33:16,508 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]> 2019-04-03 16:33:16,583 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'db2d300e-5668-11e9-adcf-cdde12b9fa70', 'Content-Type': 'text/xml', 'Content-Length': '1328', 'Date': 'Wed, 03 Apr 2019 23:33:16 GMT'} 2019-04-03 16:33:16,583 - MainThread - botocore.parsers - DEBUG - Response body: b'\n \n \n CAPABILITY_NAMED_IAM\n \n 2019-04-03T23:33:11.384Z\n \n arn:aws:cloudformation:us-west-2:364134284637:stack/myDynamodbStack/bf09edf0-5667-11e9-bb42-0a4c6c316150\n UNAVAILABLE\n myDynamodbStack\n \n Created by AWS CLI at 2019-04-03T23:33:10.817037 UTC\n awscli-cloudformation-package-deploy-1554334390\n \n No updates are to be performed.\n \n \n Environment\n dev\n \n \n arn:aws:cloudformation:us-west-2:364134284637:changeSet/awscli-cloudformation-package-deploy-1554334390/0a7a5097-2a8d-4b98-96f0-44d2a4fc9b0f\n FAILED\n \n \n db2d300e-5668-11e9-adcf-cdde12b9fa70\n \n\n' 2019-04-03 16:33:16,583 - MainThread - botocore.hooks - DEBUG - Event needs-retry.cloudformation.DescribeChangeSet: calling handler <botocore.retryhandler.RetryHandler object at 0x7f82d15645c0> 2019-04-03 16:33:16,583 - MainThread - botocore.retryhandler - DEBUG - No retry needed. 2019-04-03 16:33:16,583 - MainThread - awscli.customizations.cloudformation.deployer - DEBUG - Create changeset waiter exception Traceback (most recent call last): File "/usr/lib/python3/dist-packages/awscli/customizations/cloudformation/deployer.py", line 163, in wait_for_changeset WaiterConfig=waiter_config) File "/usr/lib/python3/dist-packages/botocore/waiter.py", line 53, in wait Waiter.wait(self, **kwargs) File "/usr/lib/python3/dist-packages/botocore/waiter.py", line 323, in wait last_response=response, botocore.exceptions.WaiterError: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state 2019-04-03 16:33:16,586 - MainThread - awscli.clidriver - DEBUG - Exception caught in main() Traceback (most recent call last): File "/usr/lib/python3/dist-packages/awscli/customizations/cloudformation/deployer.py", line 163, in wait_for_changeset WaiterConfig=waiter_config) File "/usr/lib/python3/dist-packages/botocore/waiter.py", line 53, in wait Waiter.wait(self, **kwargs) File "/usr/lib/python3/dist-packages/botocore/waiter.py", line 323, in wait last_response=response, botocore.exceptions.WaiterError: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/awscli/clidriver.py", line 208, in main return command_table[parsed_args.command](remaining, parsed_args) File "/usr/lib/python3/dist-packages/awscli/clidriver.py", line 345, in call return command_table[parsed_args.operation](remaining, parsed_globals) File "/usr/lib/python3/dist-packages/awscli/customizations/commands.py", line 187, in call return self._run_main(parsed_args, parsed_globals) File "/usr/lib/python3/dist-packages/awscli/customizations/cloudformation/deploy.py", line 296, in _run_main parsed_args.fail_on_empty_changeset) File "/usr/lib/python3/dist-packages/awscli/customizations/cloudformation/deploy.py", line 311, in deploy tags=tags File "/usr/lib/python3/dist-packages/awscli/customizations/cloudformation/deployer.py", line 226, in create_and_wait_for_changeset self.wait_for_changeset(result.changeset_id, stack_name) File "/usr/lib/python3/dist-packages/awscli/customizations/cloudformation/deployer.py", line 177, in wait_for_changeset .format(ex, status, reason)) RuntimeError: Failed to create the changeset: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state Status: FAILED. Reason: No updates are to be performed. 2019-04-03 16:33:16,591 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255

Failed to create the changeset: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state Status: FAILED. Reason: No updates are to be performed. Build step 'Execute shell' marked build as failure Finished: FAILURE

softreigns avatar May 05 '19 19:05 softreigns

@softreigns - Thank you for the debug logs they were helpful. This issue was fixed with PR #3153, commit https://github.com/aws/aws-cli/pull/3153/commits/156ff9e071ad410ea1bf08a59b9113638f310090, and released under CLI version 1.14.51. The debug output shows the command is being run in an environment using a lower version of the CLI which does not have the bug fix:

2019-04-03 16:33:10,783 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.14.44 Python/3.6.7 Linux/4.15.0-20-generic botocore/1.8.48

It is recommended to update to the latest version of the CLI. Let us know if this helps.

justnance avatar Jun 20 '19 14:06 justnance

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

no-response[bot] avatar Jun 27 '19 14:06 no-response[bot]