CDK Diff Shows Differences When Pulled from Repo

0

I'm working with a CDK deployment that another coworker put together. I pulled it from a repo and when I diff on my end , I see a bunch of Refs as being different from what is currently deployed, ie.

[~] AWS::IAM::Policy Custom::CDKBucketDeployment..../ServiceRole/DefaultPolicy CustomCDKBucketDeployment...ServiceRoleDefaultPolicy...FDF 
 └─ [~] PolicyDocument
     └─ [~] .Statement:
         └─ @@ -17,7 +17,7 @@
            [ ]     },
            [ ]     ":s3:::",
            [ ]     {
            [-]       "Ref": "AssetParameters...71A7"
            [+]       "Ref": "AssetParameters...E99B2"
            [ ]     }

For debugging, another interesting difference is the path changing for an asset,

[~] AWS::Lambda::LayerVersion DeployConfig/AwsCliLayer DeployConfigAwsCliLayer...
 └─ [~] Metadata
     └─ [~] .aws:asset:original-path:
         ├─ [-] /private/var/folders/96/.../T/jsii-kernel-O1sxtX/node_modules/@aws-cdk/lambda-layer-awscli/lib/layer.zip
         └─ [+] /tmp/jsii-kernel-jSg2jv/node_modules/@aws-cdk/lambda-layer-awscli/lib/layer.zip

Is it possible that these changes won't affect our existing deployment if I deploy? The code I've pulled is up to date so I can't explain why I would have these differences.

manwar
已提问 2 年前42 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则