ECS parameter last modified date does not match
See original GitHub issue❓ ECS parameter last modified date does not match
The Question
cdk deploy stops when creating the change set with the following error:
Parameters: [ssm:/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id:58:1618452653926] last modified date does not match with the last modified date of the retrieved parameters.
Yesterday it was still working. I did not change anything.
The ECS configuration is nothing fancy:
from aws_cdk import aws_ecs as ecs, aws_ec2 as ec2, core
class Ecs:
def __init__(self, stack: core.Stack, vpc: ec2.Vpc):
self.cluster = ecs.Cluster(
stack,
"EcsCluster",
vpc=vpc,
)
self.cluster.add_capacity(
"EcsCluserCapacity",
instance_type=ec2.InstanceType.of(
instance_class=ec2.InstanceClass.BURSTABLE3,
instance_size=ec2.InstanceSize.SMALL,
),
allow_all_outbound=True,
vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE),
)
If you have an idea or need more information, please let me know 😃
Environment
- CDK CLI Version: 1.101.0 (build 149f0fc)
- Module Version: aws-cdk.aws-ecs==1.101.0
- Node.js Version: v12.16.0
- OS: OSX Big Sur 11.2.1
- Language: Python
Other information
ApiStagingStack failed: Error: Failed to create ChangeSet cdk-deploy-change-set on ApiStagingStack: FAILED, Parameters: [ssm:/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id:58:1618452653926] last modified date does not match with the last modified date of the retrieved parameters.
at /Users/tobiasnawa/.nvm/versions/node/v12.16.0/lib/node_modules/aws-cdk/lib/api/util/cloudformation.ts:227:11
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at waitFor (/Users/tobiasnawa/.nvm/versions/node/v12.16.0/lib/node_modules/aws-cdk/lib/api/util/cloudformation.ts:188:20)
at Object.waitForChangeSet (/Users/tobiasnawa/.nvm/versions/node/v12.16.0/lib/node_modules/aws-cdk/lib/api/util/cloudformation.ts:213:15)
at Object.deployStack (/Users/tobiasnawa/.nvm/versions/node/v12.16.0/lib/node_modules/aws-cdk/lib/api/deploy-stack.ts:260:32)
at CdkToolkit.deploy (/Users/tobiasnawa/.nvm/versions/node/v12.16.0/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:180:24)
at initCommandLine (/Users/tobiasnawa/.nvm/versions/node/v12.16.0/lib/node_modules/aws-cdk/bin/cdk.ts:209:9)
Failed to create ChangeSet cdk-deploy-change-set on ApiStagingStack: FAILED, Parameters: [ssm:/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id:58:1618452653926] last modified date does not match with the last modified date of the retrieved parameters.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:23 (7 by maintainers)
Top Results From Across the Web
last modified date does not match with the ... - Stack Overflow
Failed to create ChangeSet cdk-deploy-change-set on production-ec2: FAILED, Parameters: [ssm:/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm- ...
Read more >Troubleshoot common errors with API calls in Amazon ECS
The Amazon ECS APIs might fail with one of the following errors: AccessDeniedException; ClientException; ClusterNotFoundException ...
Read more >class ECS. Client - Boto3 Docs 1.26.34 documentation
It also stops tasks that don't meet the placement constraints. ... If a revision isn't specified, the latest ACTIVE revision is used. A...
Read more >ECS Data Access Guide - Dell
Cannot configure the bucket policies for operations that ECS does not support. More ... For expiration, the days are calculated since the last...
Read more >Elasticsearch output plugin | Logstash Reference [8.5] | Elastic
Compatibility with the Elastic Common Schema (ECS)edit ... The [@metadata] fields will not be sent to Elasticsearch. Example:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So it seems like this is related to the new cloudformation feature for dynamic parameter references https://aws.amazon.com/about-aws/whats-new/2021/04/now-reference-latest-aws-systems-manager-parameter-values-in-aws-cloudformation-templates-without-specifying-parameter-versions/.
We are removing the usage of this feature in the next cdk release which should prevent stacks from getting into this state and are working with cloudformation on a solution to the stacks that are currently stuck. Will provide updates here as they come.
Run
cdk synth
and update stack manually using generated CFN template through AWS console (update stack, not create changeset). After that it will work.