fix: add permission to enable --generate-cmd#3942
Conversation
|
what do you think about adding a version check like this one: copilot-cli/internal/pkg/cli/job_run.go Line 201 in 0572e47 so that we remind people to upgrade their environment template so that the env manager role has the permission when |
Should we do this for everyone who runs |
I think just for those who use I'm happy to merge this as is, and have the version check as a follow-up because like you said, it's relatively rarely used :cool-crying |
|
Okay, I can add the version check as a follow-up so this can move. Thanks! |
Follow-up to #3942. Fails earlier if user's env version doesn't support the `--generate-cmd` flag for the `task run` command due to missing permissions. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
#3095 changed the session for
--generate-cmdfrom default to EnvManagerRole; that role needs thestates:DescribeStateMachinepermission.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.