magenx / Magento-2-aws-cluster-terraform

Magento 2 AWS autoscaling cluster with Terraform and Packer or ImageBuilder. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. Developer-friendly. No hidden bottlenecks.
https://www.magenx.com
124 stars 41 forks source link

Error creating service-linked role with name es.amazonaws.com #4

Closed selcuk-cofe closed 3 years ago

selcuk-cofe commented 3 years ago

Hello Thanks for your hard work ,

but if you’re already setup elasticsearch domain on your account can not create Service Linked Role because already created on account.

How to skip creating service linked Role I couldn't find module block to add create_iam_service_linked_role = false

Terraform giving below error.

"Error creating service-linked role with name es.amazonaws.com: InvalidInput: Service role name AWSServiceRoleForAmazonElasticsearchService has been taken in this account, please try a different suffix."

magenx commented 3 years ago

trying to use some mix of terraformand aws cli to catch role while it should work in aws cloudshell.

selcuk-cofe commented 3 years ago

thanks for your help, I applied in aws cloudshell and succesfully apply all stack but I can not access store frontend I only see Nginx page on outher alb dns url. how to fix that ?