Procházet zdrojové kódy

Fixes issue with unique_id

Fred Damstra (Macbook 2015) před 2 roky
rodič
revize
ebecc6e26f
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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