-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[custom-resources][aws-codepipeline] CustomResources AssetParameters not set during Cloudformation Deploy #11415
Comments
Hi @joa44741 , thanks for opening the issue. The reason you're seeing that error is because the custom resources use Assets, which are not compatible with that article you quoted (that's why the article uses I would recommend you take a look at the CDK Pipelines module, which does correctly support Assets. Thanks, |
Hi @skinny85 How would I use an existing VPC in this case, e.g. to create a new Security Group in this Pipeline? |
Hi @joa44741 , there is a way to work around that limitation. You need to run |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Hey @skinny85, is there a way to deploy pipeline stack with cdk.context.json? |
Can you clarify @OperationalFallacy what does this mean? Why are the VPC/Subnets not populated in the |
Sorry, user error. Forgot to commit cdk.context.json in the branch. |
Description of the bug:
I try to add a custom resource to the CI/CD pipeline which I built exactly like described in this link: https://docs.aws.amazon.com/cdk/latest/guide/codepipeline_example.html
Reproduction Steps
add these lines to the
lambda-stack.ts
of the example code: https://docs.aws.amazon.com/cdk/latest/guide/codepipeline_example.htmlimport * as customres from '@aws-cdk/custom-resources';
...
const provider = new customres.Provider(this, 'mycustomprovider', { onEventHandler: alias });
new core.CustomResource(this, 'mycustomresource', { serviceToken: provider.serviceToken });
What did you expect to happen?
The CodePipeline should add the CustomResource (call the Lambda) in the CloudFormation deploy step.
What actually happened?
This error occured in the deploy step:
Parameters: [AssetParametersc691172cdeefa2c91b5a2907f9d81118e47597634943344795f1a844192dd49cS3BucketEAC9DD43, AssetParametersc691172cdeefa2c91b5a2907f9d81118e47597634943344795f1a844192dd49cS3VersionKeyDD9AE9E7, AssetParametersc691172cdeefa2c91b5a2907f9d81118e47597634943344795f1a844192dd49cArtifactHash627DAAA7] must have values (Service: AmazonCloudFormation; Status Code: 400; Error Code: ValidationError; Request ID: e8f9a97f-fee8-48e3-a182-30bf6aa6e2fd)
Environment
Other
The same error occurs when using
AwsCustomResource
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: