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 bug in cloud9-cfn.yaml : SSM bootstraping doesn't work due to IAM and resource creation order #280

Closed
wants to merge 1 commit into from

Conversation

mabuchs
Copy link

@mabuchs mabuchs commented May 16, 2024

Issue #, if available: #272

Description of changes:
In some configuration, C9SSMDocument doesn't use IAM role attached as InstanceProfile hence ResizeVolume runCommand falls into infinite loop, and finally CFn stack creation fails. To avoid it, this commit modifies below:

  • Force SSM runCommand to ignore IAM role configured in SSM default setting and use InstanceProfile
  • Change resource creation order so that InstanceProfile is attached to C9 instance before SSM runCommand starts.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… and resource creation order

In some configuration, C9SSMDocument doesn't use IAM role attached as InstanceProfile hence
`ResizeVolume` runCommand falls into infinite loop, and finally CFn stack creation fails.
To avoid it, this commit modifies below:
- Force SSM runCommand to ignore IAM role configured in SSM default setting and
  use InstanceProfile
- Change resource creation order so that InstanceProfile is attached to C9 instance
  before SSM runCommand starts.
@rafaelpereyra
Copy link
Contributor

AWS Cloud9 in process of removal.

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.

2 participants