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
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cloud9-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ Resources:
- !Sub SIZE=${C9InstanceVolumeSize}
- !Sub REGION=${AWS::Region}
- |
unset AWS_SHARED_CREDENTIALS_FILE
INSTANCEID=$(curl http://169.254.169.254/latest/meta-data/instance-id)
VOLUMEID=$(aws ec2 describe-instances \
--instance-id $INSTANCEID \
Expand Down Expand Up @@ -814,6 +815,7 @@ Resources:


C9BootstrapAssociation:
DependsOn: C9BootstrapInstanceLambda
Type: AWS::SSM::Association
Properties:
Name: !Ref C9SSMDocument
Expand Down Expand Up @@ -880,7 +882,6 @@ Resources:
- Ref: C9Role

C9Instance:
DependsOn: C9BootstrapAssociation
Type: AWS::Cloud9::EnvironmentEC2
Properties:
Description: !Sub AWS Cloud9 instance for ${EnvironmentName}
Expand Down