profile
viewpoint

Ask questionsECS parameter last modified date does not match

:question: 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. image

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.
aws/aws-cdk

Answer questions blaenk

Thanks, I'll try to keep an eye out for when it's released to go ahead and try it.

useful!
source:https://uonfu.com/
Github User Rank List