You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I try to setup an OpenShift Environment for Training purposes: cluster installation, generating project etc.
Thankfully I found the terraform-aws-openshift project :)
The idea I generated with Dave is just to copy the code in different folders and change the region as well as the cluster_name and cluster_id in the main.tf
So far so good, if you now want to make a new infrastructure ('make infrastructure') the following errors occured:
aws_iam_role.openshift-instance-role: Error creating IAM Role openshift-instance-role: EntityAlreadyExists: Role with name openshift-instance-role already exists.
status code: 409, request id: d0a10ff1-56d1-11e8-8d7f-6372f8cf09fc
aws_iam_policy.openshift-policy-forward-logs: Error creating IAM policy openshift-instance-forward-logs: EntityAlreadyExists: A policy called openshift-instance-forward-logs already exists. Duplicate names are not allowed.
status code: 409, request id: d09e5161-56d1-11e8-963f-6d117c496f53
aws_iam_user.openshift-aws-user: Error creating IAM User openshift-aws-user: EntityAlreadyExists: User with name openshift-aws-user already exists.
status code: 409, request id: d09e50c9-56d1-11e8-8d7f-6372f8cf09fc`
I bolded the interesting passages which says that the IAM role, policy and user already exist.
Does anyone has an idea or an efficient way how to deal with that?
Is it possible to reuse those IAM roles, policies and users?
Or should I rename them in the modules?
Thanks a lot and best regards!
The text was updated successfully, but these errors were encountered:
I'll look into whether there's a good way to eliminate the roles, probably not entirely but there might be something I can do on the Terraform side to make things more straightforward. Thanks for sharing your solution @dspree!
Hi,
I try to setup an OpenShift Environment for Training purposes: cluster installation, generating project etc.
Thankfully I found the terraform-aws-openshift project :)
The idea I generated with Dave is just to copy the code in different folders and change the region as well as the cluster_name and cluster_id in the main.tf
So far so good, if you now want to make a new infrastructure ('make infrastructure') the following errors occured:
`3 error(s) occurred:
module.openshift.aws_iam_role.openshift-instance-role: 1 error(s) occurred:
aws_iam_role.openshift-instance-role: Error creating IAM Role openshift-instance-role: EntityAlreadyExists: Role with name openshift-instance-role already exists.
status code: 409, request id: d0a10ff1-56d1-11e8-8d7f-6372f8cf09fc
module.openshift.aws_iam_policy.openshift-policy-forward-logs: 1 error(s) occurred:
aws_iam_policy.openshift-policy-forward-logs: Error creating IAM policy openshift-instance-forward-logs: EntityAlreadyExists: A policy called openshift-instance-forward-logs already exists. Duplicate names are not allowed.
status code: 409, request id: d09e5161-56d1-11e8-963f-6d117c496f53
module.openshift.aws_iam_user.openshift-aws-user: 1 error(s) occurred:
aws_iam_user.openshift-aws-user: Error creating IAM User openshift-aws-user: EntityAlreadyExists: User with name openshift-aws-user already exists.
status code: 409, request id: d09e50c9-56d1-11e8-8d7f-6372f8cf09fc`
I bolded the interesting passages which says that the IAM role, policy and user already exist.
Does anyone has an idea or an efficient way how to deal with that?
Is it possible to reuse those IAM roles, policies and users?
Or should I rename them in the modules?
Thanks a lot and best regards!
The text was updated successfully, but these errors were encountered: