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

rain should support "service-managed" stacksets #277

Closed
paul-e-allen opened this issue Feb 14, 2024 · 1 comment · Fixed by #410
Closed

rain should support "service-managed" stacksets #277

paul-e-allen opened this issue Feb 14, 2024 · 1 comment · Fixed by #410

Comments

@paul-e-allen
Copy link

I am deploying CloudFormation templates that create stacksets as resources. I thought I might be able to use the rain stackset ls TARGET_STACKSET to watch the deployment of the stacksets.

When I executed just a plain rain stackset ls I noticed that rain is showing only the "self-managed" stacksets and not the "service-managed" stacksets.

When I try to execute a rain stackset ls TARGET_STACKSET when the target stackset is "service-managed", that generates the following error:

failed to list stack set 'stacksets-gitsync-test-team-chatbot-limited-regions-regional': operation error CloudFormation: DescribeStackSet, https response error StatusCode: 404, RequestID: 0d95366b-8326-4c2a-9600-9f1eb9ca1fc7, StackSetNotFoundException: StackSet TARGET_STACKSET not found

I am using Rain v1.7.5 linux/amd64.

It would be awesome if rain supported "service-managed" stacksets.

@paul-e-allen paul-e-allen changed the title stackset ls shows just "self-managed" stacksets and ignores "service-managed" stacksets rain should support "service-managed" stacksets Feb 14, 2024
@ericzbeard
Copy link
Contributor

The API has a CallAs parameter that we need to set, so I think this should require you to specify it on the command line.

rain stackset ls --call-as admin

The default for call-as will remain self

type CallAs string

// Enum values for CallAs
const (
	CallAsSelf           CallAs = "SELF"
	CallAsDelegatedAdmin CallAs = "DELEGATED_ADMIN"
)

Maybe simpler to do this:

rain stackset ls --admin

And assume self otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants