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

Prefix metrics_profile name with ClusterName #812

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

agarciamontoro
Copy link
Member

@agarciamontoro agarciamontoro commented Sep 26, 2024

Summary

#798 introduced a new aws_iam_instance_profile whose name was hard-coded to metrics_profile. Of course, that creates conflicts with other currently deployed clusters, throwing this error:

info  [2024-09-25 15:49:43.890 -06:00] │ Error: creating IAM Instance Profile (metrics_profile): operation error IAM: CreateInstanceProfile, https response error StatusCode: 409, RequestID: 5a5d50ea-fa2d-411b-b185-2009a4975393, EntityAlreadyExists: Instance Profile metrics_profile already exists. caller="terraform/engine.go:97"

We need to make that name unique as we do with all other resources: prefixing its name with the ClusterName specified in deployer.json.

Thanks @streamer45 for catching this!

Ticket Link

--

Otherwise, we create conflicts with other clusters currently deployed.
@agarciamontoro agarciamontoro added the 2: Dev Review Requires review by a core committer label Sep 26, 2024
@isacikgoz isacikgoz added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Sep 26, 2024
@agarciamontoro agarciamontoro merged commit aa5b00f into master Sep 26, 2024
1 check passed
@agarciamontoro agarciamontoro deleted the fix.metrics_profile.name branch September 26, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants