Skip to content
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

fix: Add Missing Service Role Permissions #1192

Conversation

philnielsen
Copy link
Contributor

We required these extra permissions when we made the switch to using the service role. I'm not sure what permutation of parameters added these extra requirements, but I don't think it would be unique for our org.

We required these extra permissions when we made the switch to using the
service role.
Copy link
Contributor

@triarius triarius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @philnielsen. We do test the creating stacks with service role on CI, but only on the default parameters.

I'm not sure what combination of parameters would cause this either, but just looking at the new permissions, it looks like they might have been used when upgrading an existing stack with (maybe with different parameters). Can you confirm that that's the case to narrow down my search?

This looks good to me, but I think we will have to verify this ourselves before merging, so anything you can do to narrow down the search space will speed this up.

@philnielsen
Copy link
Contributor Author

That is correct. the two logical IDs it was failing to update were AutoscalingFunction in the autoscaling nested stack and AgentAutoScaleGroup in the main stack when going from v5.21.0 to v5.22.2. I don't think any other parameters changed

Copy link
Contributor

@triarius triarius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delay, I verified each of the permissions added now. I also observed we needed to add:

"lambda:UpdateFunctionCode",

I'll make a PR for that too.

@triarius triarius merged commit 577fbb6 into buildkite:main Oct 11, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants