Explorar o código

Fixes issue with unique_id

Fred Damstra (Macbook 2015) %!s(int64=2) %!d(string=hai) anos
pai
achega
ebecc6e26f
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      backend.tf
  2. 1 1
      security_groups.tf

+ 1 - 1
backend.tf

@@ -1,7 +1,7 @@
 terraform {
   backend "s3" {
     bucket  = "terraform-remote-state-20221017144428493300000001"
-    key     = local.unique_id
+    key     = "monkeybox_emr_lab_jupyter"
     region  = "us-east-2"
     encrypt = true
     profile = "default"

+ 1 - 1
security_groups.tf

@@ -1,5 +1,5 @@
 resource "aws_security_group" "allow_access" {
-  name        = "allow_access"
+  name_prefix = local.unique_id
   description = "Allow inbound traffic"
   vpc_id      = aws_vpc.main.id