Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

actions_comment not working with cdk diff #45

Open
mettke opened this issue Dec 14, 2021 · 0 comments
Open

actions_comment not working with cdk diff #45

mettke opened this issue Dec 14, 2021 · 0 comments

Comments

@mettke
Copy link

mettke commented Dec 14, 2021

Hey, thank you for creating this github action, it really helps us with our deployment flow. We are, however, not able to get the actions_comment flag to work, would you mind helping us with it?

In our yaml file we are setting the permissions:

permissions:
  contents: write
  pull-requests: write

And then we use the following (AWS credentials are available via env variables):

      - name: CDK diff
        uses: youyo/aws-cdk-github-actions@v2
        with:
          cdk_subcommand: 'diff'
          cdk_stack: 'stackname-*'
          working_dir: './infra'
          actions_comment: true

This creates a diff for the two stacks we have and prints out the differences (the first one has differences, the second ones doesn't), but no message is written to the PR. Could it be that it works only with one stack at a time?

Stack stack-name-1
IAM Statement Changes
[...]
Resources
[+] AWS::Events::Rule [..]

Stack stack-name-2
There were no differences
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant