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

Setup Cloud9 environment fails as cloudformation stack creation fails #228

Open
gkovan opened this issue Jun 5, 2023 · 3 comments
Open
Assignees

Comments

@gkovan
Copy link

gkovan commented Jun 5, 2023

The cloudformation template fails when setting up the cloud9 environment.

I followed the steps in the workshop: https://catalog.us-east-1.prod.workshops.aws/workshops/31676d37-bbe9-4992-9cd1-ceae13c5116c/en-US/installation/not-using-ee/setup-cloud9

and got the following error:

Screenshot 2023-06-05 at 9 06 24 AM

The following errors showed up in the cloudwatch logs:

[ERROR]	2023-06-05T12:29:25.650Z	cd03876b-0d8a-4166-aaeb-e0c01bebd771	An error occurred (IncorrectState) when calling the AssociateIamInstanceProfile operation: There is an existing association for instance i-07e943ccbf113d5f8
Traceback (most recent call last):
  File "/var/task/index.py", line 43, in lambda_handler
    response = ec2.associate_iam_instance_profile(IamInstanceProfile=iam_instance_profile, InstanceId=instance['InstanceId'])
  File "/var/runtime/botocore/client.py", line 530, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/var/runtime/botocore/client.py", line 960, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (IncorrectState) when calling the AssociateIamInstanceProfile operation: There is an existing association for instance i-07e943ccbf113d5f8

and

{
    "Status": "FAILED",
    "Reason": "See the details in CloudWatch Log Stream: 2023/06/05/[$LATEST]d8291b9393434b33820461d3ed667311",
    "PhysicalResourceId": "CustomResourcePhysicalID",
    "StackId": "arn:aws:cloudformation:us-east-1:577619097681:stack/C9-Observability-Workshop/3c9715a0-039c-11ee-8fec-0ea25af41d31",
    "RequestId": "f6606300-2ae2-4639-b374-c35c9462872e",
    "LogicalResourceId": "C9BootstrapInstanceLambda",
    "NoEcho": false,
    "Data": {
        "Error": "There was a problem associating IAM profile to the Cloud9 Instance"
    }
}
@snypher
Copy link

snypher commented Jul 10, 2023

Same error here when trying to deploy in my own AWS account (not at an AWS event)

@snypher
Copy link

snypher commented Jul 10, 2023

This same issue was reported on Feb 1
#201

@awsimaya
Copy link
Contributor

@rafaelpereyra , can you take a look at this please?

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

No branches or pull requests

4 participants