- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
Update main.tf #28
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
          
     Open
      
      
            motatoes
  wants to merge
  5
  commits into
  main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
motatoes-patch-10
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
                
     Open
            
            Update main.tf #28
Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    
          plan for ee-dev-ec2-y 2024-11-21 11:12:01 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan validation checks succeeded ✅Plan summary
  | 
    
          plan for ee-dev-ec2-y 2024-11-21 11:13:39 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan validation checks succeeded ✅Plan summary
  | 
    
          plan for ee-dev-ec2-y 2024-11-21 11:40:05 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan validation checks succeeded ✅Plan summary
  | 
    
          plan for ee-dev-ec2-y 2024-11-21 11:45:27 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan failed validation checks ❌everything is allowed%!!(MISSING)!(MISSING)(EXTRA string=aws_ssm_parameter.foo)  | 
    
          plan for ee-dev-ec2-y 2024-11-21 11:50:14 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan failed validation checks ❌everything is allowed%!!(MISSING)!(MISSING)(EXTRA string=aws_ssm_parameter.foo)  | 
    
          plan for ee-dev-ec2-y 2024-11-21 11:57:40 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan validation checks succeeded ✅Plan summary
  | 
    
          plan for ee-dev-ec2-y 2024-11-21 12:12:03 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan failed validation checks ❌everything is denied aws_ssm_parameter.foo  | 
    
          plan for ee-dev-ec2-y 2024-11-21 12:53:40 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan validation checks succeeded ✅Plan summary
  | 
    
          plan for ee-dev-ec2-y 2024-11-21 16:20:50 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
───────────────────────────────────────────────────────────────────────────── | 
    
          plan for ee-dev-ec2-y 2024-11-21 16:23:21 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan failed validation checks ❌Resource aws_ssm_parameter.foo (aws_ssm_parameter) is missing required tag: cost-center Resource aws_ssm_parameter.foo (aws_ssm_parameter) is missing required tag: environment Resource aws_ssm_parameter.foo (aws_ssm_parameter) is missing required tag: owner  | 
    
          plan for ee-dev-ec2-y 2024-11-21 17:23:29 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_instance.example will be created
  + resource "aws_instance" "example" {
      + ami                                  = "ami-0e731c8a588258d0d"
      + arn                                  = (known after apply)
      + associate_public_ip_address          = (known after apply)
      + availability_zone                    = (known after apply)
      + cpu_core_count                       = (known after apply)
      + cpu_threads_per_core                 = (known after apply)
      + disable_api_stop                     = (known after apply)
      + disable_api_termination              = (known after apply)
      + ebs_optimized                        = (known after apply)
      + get_password_data                    = false
      + host_id                              = (known after apply)
      + host_resource_group_arn              = (known after apply)
      + iam_instance_profile                 = (known after apply)
      + id                                   = (known after apply)
      + instance_initiated_shutdown_behavior = (known after apply)
      + instance_lifecycle                   = (known after apply)
      + instance_state                       = (known after apply)
      + instance_type                        = "t2.micro"
      + ipv6_address_count                   = (known after apply)
      + ipv6_addresses                       = (known after apply)
      + key_name                             = (known after apply)
      + monitoring                           = (known after apply)
      + outpost_arn                          = (known after apply)
      + password_data                        = (known after apply)
      + placement_group                      = (known after apply)
      + placement_partition_number           = (known after apply)
      + primary_network_interface_id         = (known after apply)
      + private_dns                          = (known after apply)
      + private_ip                           = (known after apply)
      + public_dns                           = (known after apply)
      + public_ip                            = (known after apply)
      + secondary_private_ips                = (known after apply)
      + security_groups                      = (known after apply)
      + source_dest_check                    = true
      + spot_instance_request_id             = (known after apply)
      + subnet_id                            = (known after apply)
      + tags                                 = {
          + "Name" = "example-instance"
        }
      + tags_all                             = {
          + "Name" = "example-instance"
        }
      + tenancy                              = (known after apply)
      + user_data                            = (known after apply)
      + user_data_base64                     = (known after apply)
      + user_data_replace_on_change          = false
      + vpc_security_group_ids               = (known after apply)
      + capacity_reservation_specification (known after apply)
      + cpu_options (known after apply)
      + ebs_block_device (known after apply)
      + enclave_options (known after apply)
      + ephemeral_block_device (known after apply)
      + instance_market_options (known after apply)
      + maintenance_options (known after apply)
      + metadata_options (known after apply)
      + network_interface (known after apply)
      + private_dns_name_options (known after apply)
      + root_block_device (known after apply)
    }
  # aws_security_group.instance will be created
  + resource "aws_security_group" "instance" {
      + arn                    = (known after apply)
      + description            = "Managed by Terraform"
      + egress                 = [
          + {
              + cidr_blocks      = [
                  + "0.0.0.0/0",
                ]
              + from_port        = 0
              + ipv6_cidr_blocks = []
              + prefix_list_ids  = []
              + protocol         = "-1"
              + security_groups  = []
              + self             = false
              + to_port          = 0
                # (1 unchanged attribute hidden)
            },
        ]
      + id                     = (known after apply)
      + ingress                = [
          + {
              + cidr_blocks      = [
                  + "0.0.0.0/0",
                ]
              + from_port        = 22
              + ipv6_cidr_blocks = []
              + prefix_list_ids  = []
              + protocol         = "tcp"
              + security_groups  = []
              + self             = false
              + to_port          = 22
                # (1 unchanged attribute hidden)
            },
        ]
      + name                   = "example-instance"
      + name_prefix            = (known after apply)
      + owner_id               = (known after apply)
      + revoke_rules_on_delete = false
      + tags_all               = (known after apply)
      + vpc_id                 = (known after apply)
    }
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 2 to add, 1 to change, 0 to destroy.
Changes to Outputs:
  + public_ip = (known after apply)
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan failed validation checks ❌Resource aws_instance.example (aws_instance) is missing required tag: cost-center Resource aws_instance.example (aws_instance) is missing required tag: environment Resource aws_instance.example (aws_instance) is missing required tag: owner Resource aws_security_group.instance (aws_security_group) is missing required tag: cost-center Resource aws_security_group.instance (aws_security_group) is missing required tag: environment Resource aws_security_group.instance (aws_security_group) is missing required tag: owner Resource aws_ssm_parameter.foo (aws_ssm_parameter) is missing required tag: cost-center Resource aws_ssm_parameter.foo (aws_ssm_parameter) is missing required tag: environment Resource aws_ssm_parameter.foo (aws_ssm_parameter) is missing required tag: owner  | 
    
          plan for ee-dev-ec2-y 2024-11-21 17:29:01 (UTC)Locking successfulProject diggerhq/demo-ee-features#ee-dev-ec2-y has been locked by PR #28Plan outputTerraform will perform the following actions:
  # aws_instance.example will be created
  + resource "aws_instance" "example" {
      + ami                                  = "ami-0e731c8a588258d0d"
      + arn                                  = (known after apply)
      + associate_public_ip_address          = (known after apply)
      + availability_zone                    = (known after apply)
      + cpu_core_count                       = (known after apply)
      + cpu_threads_per_core                 = (known after apply)
      + disable_api_stop                     = (known after apply)
      + disable_api_termination              = (known after apply)
      + ebs_optimized                        = (known after apply)
      + get_password_data                    = false
      + host_id                              = (known after apply)
      + host_resource_group_arn              = (known after apply)
      + iam_instance_profile                 = (known after apply)
      + id                                   = (known after apply)
      + instance_initiated_shutdown_behavior = (known after apply)
      + instance_lifecycle                   = (known after apply)
      + instance_state                       = (known after apply)
      + instance_type                        = "t2.micro"
      + ipv6_address_count                   = (known after apply)
      + ipv6_addresses                       = (known after apply)
      + key_name                             = (known after apply)
      + monitoring                           = (known after apply)
      + outpost_arn                          = (known after apply)
      + password_data                        = (known after apply)
      + placement_group                      = (known after apply)
      + placement_partition_number           = (known after apply)
      + primary_network_interface_id         = (known after apply)
      + private_dns                          = (known after apply)
      + private_ip                           = (known after apply)
      + public_dns                           = (known after apply)
      + public_ip                            = (known after apply)
      + secondary_private_ips                = (known after apply)
      + security_groups                      = (known after apply)
      + source_dest_check                    = true
      + spot_instance_request_id             = (known after apply)
      + subnet_id                            = (known after apply)
      + tags                                 = {
          + "Name" = "example-instance"
        }
      + tags_all                             = {
          + "Name" = "example-instance"
        }
      + tenancy                              = (known after apply)
      + user_data                            = (known after apply)
      + user_data_base64                     = (known after apply)
      + user_data_replace_on_change          = false
      + vpc_security_group_ids               = (known after apply)
      + capacity_reservation_specification (known after apply)
      + cpu_options (known after apply)
      + ebs_block_device (known after apply)
      + enclave_options (known after apply)
      + ephemeral_block_device (known after apply)
      + instance_market_options (known after apply)
      + maintenance_options (known after apply)
      + metadata_options (known after apply)
      + network_interface (known after apply)
      + private_dns_name_options (known after apply)
      + root_block_device (known after apply)
    }
  # aws_security_group.instance will be created
  + resource "aws_security_group" "instance" {
      + arn                    = (known after apply)
      + description            = "Managed by Terraform"
      + egress                 = [
          + {
              + cidr_blocks      = [
                  + "0.0.0.0/0",
                ]
              + from_port        = 0
              + ipv6_cidr_blocks = []
              + prefix_list_ids  = []
              + protocol         = "-1"
              + security_groups  = []
              + self             = false
              + to_port          = 0
                # (1 unchanged attribute hidden)
            },
        ]
      + id                     = (known after apply)
      + ingress                = [
          + {
              + cidr_blocks      = [
                  + "0.0.0.0/0",
                ]
              + from_port        = 22
              + ipv6_cidr_blocks = []
              + prefix_list_ids  = []
              + protocol         = "tcp"
              + security_groups  = []
              + self             = false
              + to_port          = 22
                # (1 unchanged attribute hidden)
            },
        ]
      + name                   = "example-instance"
      + name_prefix            = (known after apply)
      + owner_id               = (known after apply)
      + revoke_rules_on_delete = false
      + tags_all               = (known after apply)
      + vpc_id                 = (known after apply)
    }
  # aws_ssm_parameter.foo will be updated in-place
  ~ resource "aws_ssm_parameter" "foo" {
        id              = "/dev/ec2"
      + insecure_value  = (known after apply)
        name            = "/dev/ec2"
        tags            = {}
      ~ value           = (sensitive value)
      ~ version         = 1 -> (known after apply)
        # (8 unchanged attributes hidden)
    }
Plan: 2 to add, 1 to change, 0 to destroy.
Changes to Outputs:
  + public_ip = (known after apply)
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (ee-dev-ec2-y)Terraform plan failed validation checks ❌EC2 instances are not allowed in this environment Resource aws_instance.example (aws_instance) is missing required tag: cost-center Resource aws_instance.example (aws_instance) is missing required tag: environment Resource aws_instance.example (aws_instance) is missing required tag: owner Resource aws_security_group.instance (aws_security_group) is missing required tag: cost-center Resource aws_security_group.instance (aws_security_group) is missing required tag: environment Resource aws_security_group.instance (aws_security_group) is missing required tag: owner Resource aws_ssm_parameter.foo (aws_ssm_parameter) is missing required tag: cost-center Resource aws_ssm_parameter.foo (aws_ssm_parameter) is missing required tag: environment Resource aws_ssm_parameter.foo (aws_ssm_parameter) is missing required tag: owner  | 
    
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
No description provided.