Created
February 15, 2021 16:08
-
-
Save bhcopeland/3cbdcf3d31beff128b556f07338f8d04 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"format_version":"0.1", | |
"terraform_version":"0.12.28", | |
"variables":{ | |
"ami_key_pair_name":{ | |
"value":"systems-bot-ssh" | |
}, | |
"route53_zone_id":{ | |
"value":"Z2GJ2XIMVV5TPO" | |
} | |
}, | |
"planned_values":{ | |
"root_module":{ | |
"resources":[ | |
{ | |
"address":"aws_ebs_volume.lkft-gitlab-cache", | |
"mode":"managed", | |
"type":"aws_ebs_volume", | |
"name":"lkft-gitlab-cache", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"availability_zone":"us-east-1a", | |
"multi_attach_enabled":null, | |
"outpost_arn":null, | |
"size":500, | |
"tags":{ | |
"Name":"lkft-gitlab-cache" | |
}, | |
"type":"st1" | |
} | |
}, | |
{ | |
"address":"aws_eip.lkft-gitlab-runner-manager-ip", | |
"mode":"managed", | |
"type":"aws_eip", | |
"name":"lkft-gitlab-runner-manager-ip", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"associate_with_private_ip":null, | |
"customer_owned_ipv4_pool":null, | |
"tags":null, | |
"timeouts":null, | |
"vpc":true | |
} | |
}, | |
{ | |
"address":"aws_instance.lkft-gitlab-runner-manager", | |
"mode":"managed", | |
"type":"aws_instance", | |
"name":"lkft-gitlab-runner-manager", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"ami":"ami-0f09eaf66dffb40fd", | |
"credit_specification":[ | |
], | |
"disable_api_termination":null, | |
"ebs_optimized":null, | |
"get_password_data":false, | |
"hibernation":null, | |
"iam_instance_profile":"gitlab_runner_manager_instance_profile", | |
"instance_initiated_shutdown_behavior":null, | |
"instance_type":"t4g.micro", | |
"key_name":"systems-bot-ssh", | |
"monitoring":null, | |
"source_dest_check":true, | |
"tags":{ | |
"Name":"lkft Gitlab runner manager" | |
}, | |
"timeouts":null, | |
"user_data":null, | |
"user_data_base64":null, | |
"volume_tags":null | |
} | |
}, | |
{ | |
"address":"aws_internet_gateway.lkft-gw", | |
"mode":"managed", | |
"type":"aws_internet_gateway", | |
"name":"lkft-gw", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"tags":null | |
} | |
}, | |
{ | |
"address":"aws_route53_record.lkft-gitlab-runner-manager-dns", | |
"mode":"managed", | |
"type":"aws_route53_record", | |
"name":"lkft-gitlab-runner-manager-dns", | |
"provider_name":"aws", | |
"schema_version":2, | |
"values":{ | |
"alias":[ | |
], | |
"failover_routing_policy":[ | |
], | |
"geolocation_routing_policy":[ | |
], | |
"health_check_id":null, | |
"latency_routing_policy":[ | |
], | |
"multivalue_answer_routing_policy":null, | |
"name":"gitlab-runner-manager", | |
"set_identifier":null, | |
"ttl":60, | |
"type":"A", | |
"weighted_routing_policy":[ | |
], | |
"zone_id":"Z2GJ2XIMVV5TPO" | |
} | |
}, | |
{ | |
"address":"aws_route_table.lkft-route-table", | |
"mode":"managed", | |
"type":"aws_route_table", | |
"name":"lkft-route-table", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"route":[ | |
{ | |
"cidr_block":"0.0.0.0/0", | |
"egress_only_gateway_id":"", | |
"instance_id":"", | |
"ipv6_cidr_block":"", | |
"local_gateway_id":"", | |
"nat_gateway_id":"", | |
"network_interface_id":"", | |
"transit_gateway_id":"", | |
"vpc_endpoint_id":"", | |
"vpc_peering_connection_id":"" | |
} | |
], | |
"tags":{ | |
"Name":"lkft-route-table" | |
} | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-a-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-a-association", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"gateway_id":null | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-b-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-b-association", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"gateway_id":null | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-c-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-c-association", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"gateway_id":null | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-d-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-d-association", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"gateway_id":null | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-subnet-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-subnet-association", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"gateway_id":null | |
} | |
}, | |
{ | |
"address":"aws_security_group.lkft-runner-sg", | |
"mode":"managed", | |
"type":"aws_security_group", | |
"name":"lkft-runner-sg", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"description":"LKFT runners SG", | |
"egress":[ | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":0, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"-1", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":0 | |
} | |
], | |
"ingress":[ | |
{ | |
"cidr_blocks":[ | |
"10.0.1.0/24", | |
"10.0.2.0/24", | |
"10.0.3.0/24", | |
"10.0.4.0/24", | |
"10.0.5.0/24" | |
], | |
"description":"", | |
"from_port":22, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":22 | |
}, | |
{ | |
"cidr_blocks":[ | |
"10.0.1.0/24", | |
"10.0.2.0/24", | |
"10.0.3.0/24", | |
"10.0.4.0/24", | |
"10.0.5.0/24" | |
], | |
"description":"", | |
"from_port":2376, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":2376 | |
}, | |
{ | |
"cidr_blocks":[ | |
"10.0.1.0/24", | |
"10.0.2.0/24", | |
"10.0.3.0/24", | |
"10.0.4.0/24", | |
"10.0.5.0/24" | |
], | |
"description":"", | |
"from_port":3376, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":3376 | |
} | |
], | |
"name":"lkft-runners.linaro.org", | |
"revoke_rules_on_delete":false, | |
"tags":null, | |
"timeouts":null | |
} | |
}, | |
{ | |
"address":"aws_security_group.lkft-sg", | |
"mode":"managed", | |
"type":"aws_security_group", | |
"name":"lkft-sg", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"description":"Standard Security group", | |
"egress":[ | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":0, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"-1", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":0 | |
} | |
], | |
"ingress":[ | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":2222, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":2222 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":22, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":22 | |
} | |
], | |
"name":"lkft.linaro.org", | |
"revoke_rules_on_delete":false, | |
"tags":null, | |
"timeouts":null | |
} | |
}, | |
{ | |
"address":"aws_security_group.lkft-web-sg", | |
"mode":"managed", | |
"type":"aws_security_group", | |
"name":"lkft-web-sg", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"description":"Inbound HTTP/HTTPS access", | |
"ingress":[ | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":25, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":25 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":443, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":443 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":5000, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":5000 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":5050, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":5050 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":80, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":80 | |
} | |
], | |
"name":"lkft-web.linaro.org", | |
"revoke_rules_on_delete":false, | |
"tags":null, | |
"timeouts":null | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-a", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-a", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1a", | |
"cidr_block":"10.0.2.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-b", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-b", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1b", | |
"cidr_block":"10.0.3.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-c", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-c", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1c", | |
"cidr_block":"10.0.4.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-d", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-d", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1d", | |
"cidr_block":"10.0.5.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-subnet", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-subnet", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1a", | |
"cidr_block":"10.0.1.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
} | |
}, | |
{ | |
"address":"aws_vpc.lkft-vpc", | |
"mode":"managed", | |
"type":"aws_vpc", | |
"name":"lkft-vpc", | |
"provider_name":"aws", | |
"schema_version":1, | |
"values":{ | |
"assign_generated_ipv6_cidr_block":false, | |
"cidr_block":"10.0.0.0/16", | |
"enable_dns_hostnames":true, | |
"enable_dns_support":true, | |
"instance_tenancy":"default", | |
"tags":{ | |
"Name":"LKFT VPC" | |
} | |
} | |
} | |
], | |
"child_modules":[ | |
{ | |
"resources":[ | |
{ | |
"address":"module.ec2_runner_policy.aws_iam_role_policy.role_policy", | |
"mode":"managed", | |
"type":"aws_iam_role_policy", | |
"name":"role_policy", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"name_prefix":null, | |
"policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\"ec2:DescribeKeyPairs\",\"ec2:TerminateInstances\",\"ec2:StopInstances\",\"ec2:StartInstances\",\"ec2:RunInstances\",\"ec2:RebootInstances\",\"ec2:CreateKeyPair\",\"ec2:DeleteKeyPair\",\"ec2:ImportKeyPair\",\"ec2:Describe*\",\"ec2:CreateSecurityGroup\",\"ec2:AuthorizeSecurityGroupIngress\",\"ec2:CreateTags\",\"ec2:RequestSpotInstances\",\"ec2:CancelSpotInstanceRequests\",\"ec2:DescribeSubnets\",\"ec2:AssociateIamInstanceProfile\",\"iam:CreateServiceLinkedRole\",\"iam:PassRole\"],\n \"Effect\": \"Allow\",\n \"Resource\": [\"*\"]\n }\n ]\n}\n" | |
} | |
} | |
], | |
"address":"module.ec2_runner_policy" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.gitlab_instance_profile.aws_iam_instance_profile.profile", | |
"mode":"managed", | |
"type":"aws_iam_instance_profile", | |
"name":"profile", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"name":"gitlab_instance_profile", | |
"name_prefix":null, | |
"path":"/", | |
"role":"gitlab_role" | |
} | |
} | |
], | |
"address":"module.gitlab_instance_profile" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.gitlab_role.aws_iam_role.role", | |
"mode":"managed", | |
"type":"aws_iam_role", | |
"name":"role", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"assume_role_policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n },\n \"Effect\": \"Allow\",\n \"Sid\": \"\"\n }\n ]\n}\n", | |
"description":null, | |
"force_detach_policies":false, | |
"max_session_duration":3600, | |
"name":"gitlab_role", | |
"name_prefix":null, | |
"path":"/", | |
"permissions_boundary":null, | |
"tags":null | |
} | |
} | |
], | |
"address":"module.gitlab_role" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.gitlab_runner_manager_instance_profile.aws_iam_instance_profile.profile", | |
"mode":"managed", | |
"type":"aws_iam_instance_profile", | |
"name":"profile", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"name":"gitlab_runner_manager_instance_profile", | |
"name_prefix":null, | |
"path":"/", | |
"role":"gitlab_runner_manager_role" | |
} | |
} | |
], | |
"address":"module.gitlab_runner_manager_instance_profile" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.gitlab_runner_manager_role.aws_iam_role.role", | |
"mode":"managed", | |
"type":"aws_iam_role", | |
"name":"role", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"assume_role_policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n },\n \"Effect\": \"Allow\",\n \"Sid\": \"\"\n }\n ]\n}\n", | |
"description":null, | |
"force_detach_policies":false, | |
"max_session_duration":3600, | |
"name":"gitlab_runner_manager_role", | |
"name_prefix":null, | |
"path":"/", | |
"permissions_boundary":null, | |
"tags":null | |
} | |
} | |
], | |
"address":"module.gitlab_runner_manager_role" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.gitlab_storage_artifacts.aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"acl":"private", | |
"bucket":"lkft-gl-artifacts", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
} | |
} | |
], | |
"address":"module.gitlab_storage_artifacts" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.lkft_gl_dependency_proxy.aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"acl":"private", | |
"bucket":"lkft-gl-dependency-proxy", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
} | |
} | |
], | |
"address":"module.lkft_gl_dependency_proxy" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.lkft_gl_external_diffs.aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"acl":"private", | |
"bucket":"lkft-gl-external-diffs", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
} | |
} | |
], | |
"address":"module.lkft_gl_external_diffs" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.lkft_gl_lfs_objects.aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"acl":"private", | |
"bucket":"lkft-gl-lfs-objects", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
} | |
} | |
], | |
"address":"module.lkft_gl_lfs_objects" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.lkft_gl_packages.aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"acl":"private", | |
"bucket":"lkft-gl-packages", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
} | |
} | |
], | |
"address":"module.lkft_gl_packages" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.lkft_gl_uploads.aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"acl":"private", | |
"bucket":"lkft-gl-uploads", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
} | |
} | |
], | |
"address":"module.lkft_gl_uploads" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.lkft_runner_cache.aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"acl":"private", | |
"bucket":"lkft-runner-cache", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
} | |
} | |
], | |
"address":"module.lkft_runner_cache" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.s3_runner_policy.aws_iam_role_policy.role_policy", | |
"mode":"managed", | |
"type":"aws_iam_role_policy", | |
"name":"role_policy", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"name_prefix":null, | |
"policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\"s3:PutObject\",\"s3:GetObject\",\"s3:GetObjectAcl\",\"s3:PutObjectAcl\"],\n \"Effect\": \"Allow\",\n \"Resource\": [\"arn:aws:s3:::lkft-runner-*/*\"]\n }\n ]\n}\n" | |
} | |
} | |
], | |
"address":"module.s3_runner_policy" | |
}, | |
{ | |
"resources":[ | |
{ | |
"address":"module.s3_write_policy.aws_iam_role_policy.role_policy", | |
"mode":"managed", | |
"type":"aws_iam_role_policy", | |
"name":"role_policy", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"name_prefix":null, | |
"policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\"s3:AbortMultipartUpload\",\"s3:CompleteMultipartUpload\",\"s3:ListBucket\",\"s3:PutObject\",\"s3:GetObject\",\"s3:DeleteObject\",\"s3:PutObjectAcl\"],\n \"Effect\": \"Allow\",\n \"Resource\": [\"arn:aws:s3:::lkft-gl-*/*\"]\n }\n ]\n}\n" | |
} | |
} | |
], | |
"address":"module.s3_write_policy" | |
} | |
] | |
} | |
}, | |
"resource_changes":[ | |
{ | |
"address":"aws_ebs_volume.lkft-gitlab-cache", | |
"mode":"managed", | |
"type":"aws_ebs_volume", | |
"name":"lkft-gitlab-cache", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"availability_zone":"us-east-1a", | |
"multi_attach_enabled":null, | |
"outpost_arn":null, | |
"size":500, | |
"tags":{ | |
"Name":"lkft-gitlab-cache" | |
}, | |
"type":"st1" | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"encrypted":true, | |
"id":true, | |
"iops":true, | |
"kms_key_id":true, | |
"snapshot_id":true, | |
"tags":{ | |
}, | |
"throughput":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_eip.lkft-gitlab-runner-manager-ip", | |
"mode":"managed", | |
"type":"aws_eip", | |
"name":"lkft-gitlab-runner-manager-ip", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"associate_with_private_ip":null, | |
"customer_owned_ipv4_pool":null, | |
"tags":null, | |
"timeouts":null, | |
"vpc":true | |
}, | |
"after_unknown":{ | |
"allocation_id":true, | |
"association_id":true, | |
"carrier_ip":true, | |
"customer_owned_ip":true, | |
"domain":true, | |
"id":true, | |
"instance":true, | |
"network_border_group":true, | |
"network_interface":true, | |
"private_dns":true, | |
"private_ip":true, | |
"public_dns":true, | |
"public_ip":true, | |
"public_ipv4_pool":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_instance.lkft-gitlab-runner-manager", | |
"mode":"managed", | |
"type":"aws_instance", | |
"name":"lkft-gitlab-runner-manager", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"ami":"ami-0f09eaf66dffb40fd", | |
"credit_specification":[ | |
], | |
"disable_api_termination":null, | |
"ebs_optimized":null, | |
"get_password_data":false, | |
"hibernation":null, | |
"iam_instance_profile":"gitlab_runner_manager_instance_profile", | |
"instance_initiated_shutdown_behavior":null, | |
"instance_type":"t4g.micro", | |
"key_name":"systems-bot-ssh", | |
"monitoring":null, | |
"source_dest_check":true, | |
"tags":{ | |
"Name":"lkft Gitlab runner manager" | |
}, | |
"timeouts":null, | |
"user_data":null, | |
"user_data_base64":null, | |
"volume_tags":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"associate_public_ip_address":true, | |
"availability_zone":true, | |
"cpu_core_count":true, | |
"cpu_threads_per_core":true, | |
"credit_specification":[ | |
], | |
"ebs_block_device":true, | |
"enclave_options":true, | |
"ephemeral_block_device":true, | |
"host_id":true, | |
"id":true, | |
"instance_state":true, | |
"ipv6_address_count":true, | |
"ipv6_addresses":true, | |
"metadata_options":true, | |
"network_interface":true, | |
"outpost_arn":true, | |
"password_data":true, | |
"placement_group":true, | |
"primary_network_interface_id":true, | |
"private_dns":true, | |
"private_ip":true, | |
"public_dns":true, | |
"public_ip":true, | |
"root_block_device":true, | |
"secondary_private_ips":true, | |
"security_groups":true, | |
"subnet_id":true, | |
"tags":{ | |
}, | |
"tenancy":true, | |
"vpc_security_group_ids":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_internet_gateway.lkft-gw", | |
"mode":"managed", | |
"type":"aws_internet_gateway", | |
"name":"lkft-gw", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"tags":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"id":true, | |
"owner_id":true, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_route53_record.lkft-gitlab-runner-manager-dns", | |
"mode":"managed", | |
"type":"aws_route53_record", | |
"name":"lkft-gitlab-runner-manager-dns", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"alias":[ | |
], | |
"failover_routing_policy":[ | |
], | |
"geolocation_routing_policy":[ | |
], | |
"health_check_id":null, | |
"latency_routing_policy":[ | |
], | |
"multivalue_answer_routing_policy":null, | |
"name":"gitlab-runner-manager", | |
"set_identifier":null, | |
"ttl":60, | |
"type":"A", | |
"weighted_routing_policy":[ | |
], | |
"zone_id":"Z2GJ2XIMVV5TPO" | |
}, | |
"after_unknown":{ | |
"alias":[ | |
], | |
"allow_overwrite":true, | |
"failover_routing_policy":[ | |
], | |
"fqdn":true, | |
"geolocation_routing_policy":[ | |
], | |
"id":true, | |
"latency_routing_policy":[ | |
], | |
"records":true, | |
"weighted_routing_policy":[ | |
] | |
} | |
} | |
}, | |
{ | |
"address":"aws_route_table.lkft-route-table", | |
"mode":"managed", | |
"type":"aws_route_table", | |
"name":"lkft-route-table", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"route":[ | |
{ | |
"cidr_block":"0.0.0.0/0", | |
"egress_only_gateway_id":"", | |
"instance_id":"", | |
"ipv6_cidr_block":"", | |
"local_gateway_id":"", | |
"nat_gateway_id":"", | |
"network_interface_id":"", | |
"transit_gateway_id":"", | |
"vpc_endpoint_id":"", | |
"vpc_peering_connection_id":"" | |
} | |
], | |
"tags":{ | |
"Name":"lkft-route-table" | |
} | |
}, | |
"after_unknown":{ | |
"id":true, | |
"owner_id":true, | |
"propagating_vgws":true, | |
"route":[ | |
{ | |
"gateway_id":true | |
} | |
], | |
"tags":{ | |
}, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-a-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-a-association", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"gateway_id":null | |
}, | |
"after_unknown":{ | |
"id":true, | |
"route_table_id":true, | |
"subnet_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-b-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-b-association", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"gateway_id":null | |
}, | |
"after_unknown":{ | |
"id":true, | |
"route_table_id":true, | |
"subnet_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-c-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-c-association", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"gateway_id":null | |
}, | |
"after_unknown":{ | |
"id":true, | |
"route_table_id":true, | |
"subnet_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-d-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-d-association", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"gateway_id":null | |
}, | |
"after_unknown":{ | |
"id":true, | |
"route_table_id":true, | |
"subnet_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-subnet-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-subnet-association", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"gateway_id":null | |
}, | |
"after_unknown":{ | |
"id":true, | |
"route_table_id":true, | |
"subnet_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_security_group.lkft-runner-sg", | |
"mode":"managed", | |
"type":"aws_security_group", | |
"name":"lkft-runner-sg", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"description":"LKFT runners SG", | |
"egress":[ | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":0, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"-1", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":0 | |
} | |
], | |
"ingress":[ | |
{ | |
"cidr_blocks":[ | |
"10.0.1.0/24", | |
"10.0.2.0/24", | |
"10.0.3.0/24", | |
"10.0.4.0/24", | |
"10.0.5.0/24" | |
], | |
"description":"", | |
"from_port":22, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":22 | |
}, | |
{ | |
"cidr_blocks":[ | |
"10.0.1.0/24", | |
"10.0.2.0/24", | |
"10.0.3.0/24", | |
"10.0.4.0/24", | |
"10.0.5.0/24" | |
], | |
"description":"", | |
"from_port":2376, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":2376 | |
}, | |
{ | |
"cidr_blocks":[ | |
"10.0.1.0/24", | |
"10.0.2.0/24", | |
"10.0.3.0/24", | |
"10.0.4.0/24", | |
"10.0.5.0/24" | |
], | |
"description":"", | |
"from_port":3376, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":3376 | |
} | |
], | |
"name":"lkft-runners.linaro.org", | |
"revoke_rules_on_delete":false, | |
"tags":null, | |
"timeouts":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"egress":[ | |
{ | |
"cidr_blocks":[ | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
} | |
], | |
"id":true, | |
"ingress":[ | |
{ | |
"cidr_blocks":[ | |
false, | |
false, | |
false, | |
false, | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
}, | |
{ | |
"cidr_blocks":[ | |
false, | |
false, | |
false, | |
false, | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
}, | |
{ | |
"cidr_blocks":[ | |
false, | |
false, | |
false, | |
false, | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
} | |
], | |
"name_prefix":true, | |
"owner_id":true, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_security_group.lkft-sg", | |
"mode":"managed", | |
"type":"aws_security_group", | |
"name":"lkft-sg", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"description":"Standard Security group", | |
"egress":[ | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":0, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"-1", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":0 | |
} | |
], | |
"ingress":[ | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":2222, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":2222 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":22, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":22 | |
} | |
], | |
"name":"lkft.linaro.org", | |
"revoke_rules_on_delete":false, | |
"tags":null, | |
"timeouts":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"egress":[ | |
{ | |
"cidr_blocks":[ | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
} | |
], | |
"id":true, | |
"ingress":[ | |
{ | |
"cidr_blocks":[ | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
}, | |
{ | |
"cidr_blocks":[ | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
} | |
], | |
"name_prefix":true, | |
"owner_id":true, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_security_group.lkft-web-sg", | |
"mode":"managed", | |
"type":"aws_security_group", | |
"name":"lkft-web-sg", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"description":"Inbound HTTP/HTTPS access", | |
"ingress":[ | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":25, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":25 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":443, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":443 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":5000, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":5000 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":5050, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":5050 | |
}, | |
{ | |
"cidr_blocks":[ | |
"0.0.0.0/0" | |
], | |
"description":"", | |
"from_port":80, | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"protocol":"tcp", | |
"security_groups":[ | |
], | |
"self":false, | |
"to_port":80 | |
} | |
], | |
"name":"lkft-web.linaro.org", | |
"revoke_rules_on_delete":false, | |
"tags":null, | |
"timeouts":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"egress":true, | |
"id":true, | |
"ingress":[ | |
{ | |
"cidr_blocks":[ | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
}, | |
{ | |
"cidr_blocks":[ | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
}, | |
{ | |
"cidr_blocks":[ | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
}, | |
{ | |
"cidr_blocks":[ | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
}, | |
{ | |
"cidr_blocks":[ | |
false | |
], | |
"ipv6_cidr_blocks":[ | |
], | |
"prefix_list_ids":[ | |
], | |
"security_groups":[ | |
] | |
} | |
], | |
"name_prefix":true, | |
"owner_id":true, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-a", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-a", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1a", | |
"cidr_block":"10.0.2.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"availability_zone_id":true, | |
"id":true, | |
"ipv6_cidr_block_association_id":true, | |
"owner_id":true, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-b", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-b", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1b", | |
"cidr_block":"10.0.3.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"availability_zone_id":true, | |
"id":true, | |
"ipv6_cidr_block_association_id":true, | |
"owner_id":true, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-c", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-c", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1c", | |
"cidr_block":"10.0.4.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"availability_zone_id":true, | |
"id":true, | |
"ipv6_cidr_block_association_id":true, | |
"owner_id":true, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-d", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-d", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1d", | |
"cidr_block":"10.0.5.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"availability_zone_id":true, | |
"id":true, | |
"ipv6_cidr_block_association_id":true, | |
"owner_id":true, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_subnet.lkft-subnet", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-subnet", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"assign_ipv6_address_on_creation":false, | |
"availability_zone":"us-east-1a", | |
"cidr_block":"10.0.1.0/24", | |
"customer_owned_ipv4_pool":null, | |
"ipv6_cidr_block":null, | |
"map_customer_owned_ip_on_launch":null, | |
"map_public_ip_on_launch":false, | |
"outpost_arn":null, | |
"tags":null, | |
"timeouts":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"availability_zone_id":true, | |
"id":true, | |
"ipv6_cidr_block_association_id":true, | |
"owner_id":true, | |
"vpc_id":true | |
} | |
} | |
}, | |
{ | |
"address":"aws_vpc.lkft-vpc", | |
"mode":"managed", | |
"type":"aws_vpc", | |
"name":"lkft-vpc", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"assign_generated_ipv6_cidr_block":false, | |
"cidr_block":"10.0.0.0/16", | |
"enable_dns_hostnames":true, | |
"enable_dns_support":true, | |
"instance_tenancy":"default", | |
"tags":{ | |
"Name":"LKFT VPC" | |
} | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"default_network_acl_id":true, | |
"default_route_table_id":true, | |
"default_security_group_id":true, | |
"dhcp_options_id":true, | |
"enable_classiclink":true, | |
"enable_classiclink_dns_support":true, | |
"id":true, | |
"ipv6_association_id":true, | |
"ipv6_cidr_block":true, | |
"main_route_table_id":true, | |
"owner_id":true, | |
"tags":{ | |
} | |
} | |
} | |
}, | |
{ | |
"address":"module.ec2_runner_policy.aws_iam_role_policy.role_policy", | |
"module_address":"module.ec2_runner_policy", | |
"mode":"managed", | |
"type":"aws_iam_role_policy", | |
"name":"role_policy", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"name_prefix":null, | |
"policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\"ec2:DescribeKeyPairs\",\"ec2:TerminateInstances\",\"ec2:StopInstances\",\"ec2:StartInstances\",\"ec2:RunInstances\",\"ec2:RebootInstances\",\"ec2:CreateKeyPair\",\"ec2:DeleteKeyPair\",\"ec2:ImportKeyPair\",\"ec2:Describe*\",\"ec2:CreateSecurityGroup\",\"ec2:AuthorizeSecurityGroupIngress\",\"ec2:CreateTags\",\"ec2:RequestSpotInstances\",\"ec2:CancelSpotInstanceRequests\",\"ec2:DescribeSubnets\",\"ec2:AssociateIamInstanceProfile\",\"iam:CreateServiceLinkedRole\",\"iam:PassRole\"],\n \"Effect\": \"Allow\",\n \"Resource\": [\"*\"]\n }\n ]\n}\n" | |
}, | |
"after_unknown":{ | |
"id":true, | |
"name":true, | |
"role":true | |
} | |
} | |
}, | |
{ | |
"address":"module.gitlab_instance_profile.aws_iam_instance_profile.profile", | |
"module_address":"module.gitlab_instance_profile", | |
"mode":"managed", | |
"type":"aws_iam_instance_profile", | |
"name":"profile", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"name":"gitlab_instance_profile", | |
"name_prefix":null, | |
"path":"/", | |
"role":"gitlab_role" | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"create_date":true, | |
"id":true, | |
"unique_id":true | |
} | |
} | |
}, | |
{ | |
"address":"module.gitlab_role.aws_iam_role.role", | |
"module_address":"module.gitlab_role", | |
"mode":"managed", | |
"type":"aws_iam_role", | |
"name":"role", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"assume_role_policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n },\n \"Effect\": \"Allow\",\n \"Sid\": \"\"\n }\n ]\n}\n", | |
"description":null, | |
"force_detach_policies":false, | |
"max_session_duration":3600, | |
"name":"gitlab_role", | |
"name_prefix":null, | |
"path":"/", | |
"permissions_boundary":null, | |
"tags":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"create_date":true, | |
"id":true, | |
"unique_id":true | |
} | |
} | |
}, | |
{ | |
"address":"module.gitlab_runner_manager_instance_profile.aws_iam_instance_profile.profile", | |
"module_address":"module.gitlab_runner_manager_instance_profile", | |
"mode":"managed", | |
"type":"aws_iam_instance_profile", | |
"name":"profile", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"name":"gitlab_runner_manager_instance_profile", | |
"name_prefix":null, | |
"path":"/", | |
"role":"gitlab_runner_manager_role" | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"create_date":true, | |
"id":true, | |
"unique_id":true | |
} | |
} | |
}, | |
{ | |
"address":"module.gitlab_runner_manager_role.aws_iam_role.role", | |
"module_address":"module.gitlab_runner_manager_role", | |
"mode":"managed", | |
"type":"aws_iam_role", | |
"name":"role", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"assume_role_policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n },\n \"Effect\": \"Allow\",\n \"Sid\": \"\"\n }\n ]\n}\n", | |
"description":null, | |
"force_detach_policies":false, | |
"max_session_duration":3600, | |
"name":"gitlab_runner_manager_role", | |
"name_prefix":null, | |
"path":"/", | |
"permissions_boundary":null, | |
"tags":null | |
}, | |
"after_unknown":{ | |
"arn":true, | |
"create_date":true, | |
"id":true, | |
"unique_id":true | |
} | |
} | |
}, | |
{ | |
"address":"module.gitlab_storage_artifacts.aws_s3_bucket.s3bucket", | |
"module_address":"module.gitlab_storage_artifacts", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"acl":"private", | |
"bucket":"lkft-gl-artifacts", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
}, | |
"after_unknown":{ | |
"acceleration_status":true, | |
"arn":true, | |
"bucket_domain_name":true, | |
"bucket_regional_domain_name":true, | |
"cors_rule":[ | |
], | |
"grant":[ | |
], | |
"hosted_zone_id":true, | |
"id":true, | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"region":true, | |
"replication_configuration":[ | |
], | |
"request_payer":true, | |
"server_side_encryption_configuration":[ | |
], | |
"versioning":true, | |
"website":[ | |
], | |
"website_domain":true, | |
"website_endpoint":true | |
} | |
} | |
}, | |
{ | |
"address":"module.lkft_gl_dependency_proxy.aws_s3_bucket.s3bucket", | |
"module_address":"module.lkft_gl_dependency_proxy", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"acl":"private", | |
"bucket":"lkft-gl-dependency-proxy", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
}, | |
"after_unknown":{ | |
"acceleration_status":true, | |
"arn":true, | |
"bucket_domain_name":true, | |
"bucket_regional_domain_name":true, | |
"cors_rule":[ | |
], | |
"grant":[ | |
], | |
"hosted_zone_id":true, | |
"id":true, | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"region":true, | |
"replication_configuration":[ | |
], | |
"request_payer":true, | |
"server_side_encryption_configuration":[ | |
], | |
"versioning":true, | |
"website":[ | |
], | |
"website_domain":true, | |
"website_endpoint":true | |
} | |
} | |
}, | |
{ | |
"address":"module.lkft_gl_external_diffs.aws_s3_bucket.s3bucket", | |
"module_address":"module.lkft_gl_external_diffs", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"acl":"private", | |
"bucket":"lkft-gl-external-diffs", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
}, | |
"after_unknown":{ | |
"acceleration_status":true, | |
"arn":true, | |
"bucket_domain_name":true, | |
"bucket_regional_domain_name":true, | |
"cors_rule":[ | |
], | |
"grant":[ | |
], | |
"hosted_zone_id":true, | |
"id":true, | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"region":true, | |
"replication_configuration":[ | |
], | |
"request_payer":true, | |
"server_side_encryption_configuration":[ | |
], | |
"versioning":true, | |
"website":[ | |
], | |
"website_domain":true, | |
"website_endpoint":true | |
} | |
} | |
}, | |
{ | |
"address":"module.lkft_gl_lfs_objects.aws_s3_bucket.s3bucket", | |
"module_address":"module.lkft_gl_lfs_objects", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"acl":"private", | |
"bucket":"lkft-gl-lfs-objects", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
}, | |
"after_unknown":{ | |
"acceleration_status":true, | |
"arn":true, | |
"bucket_domain_name":true, | |
"bucket_regional_domain_name":true, | |
"cors_rule":[ | |
], | |
"grant":[ | |
], | |
"hosted_zone_id":true, | |
"id":true, | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"region":true, | |
"replication_configuration":[ | |
], | |
"request_payer":true, | |
"server_side_encryption_configuration":[ | |
], | |
"versioning":true, | |
"website":[ | |
], | |
"website_domain":true, | |
"website_endpoint":true | |
} | |
} | |
}, | |
{ | |
"address":"module.lkft_gl_packages.aws_s3_bucket.s3bucket", | |
"module_address":"module.lkft_gl_packages", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"acl":"private", | |
"bucket":"lkft-gl-packages", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
}, | |
"after_unknown":{ | |
"acceleration_status":true, | |
"arn":true, | |
"bucket_domain_name":true, | |
"bucket_regional_domain_name":true, | |
"cors_rule":[ | |
], | |
"grant":[ | |
], | |
"hosted_zone_id":true, | |
"id":true, | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"region":true, | |
"replication_configuration":[ | |
], | |
"request_payer":true, | |
"server_side_encryption_configuration":[ | |
], | |
"versioning":true, | |
"website":[ | |
], | |
"website_domain":true, | |
"website_endpoint":true | |
} | |
} | |
}, | |
{ | |
"address":"module.lkft_gl_uploads.aws_s3_bucket.s3bucket", | |
"module_address":"module.lkft_gl_uploads", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"acl":"private", | |
"bucket":"lkft-gl-uploads", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
}, | |
"after_unknown":{ | |
"acceleration_status":true, | |
"arn":true, | |
"bucket_domain_name":true, | |
"bucket_regional_domain_name":true, | |
"cors_rule":[ | |
], | |
"grant":[ | |
], | |
"hosted_zone_id":true, | |
"id":true, | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"region":true, | |
"replication_configuration":[ | |
], | |
"request_payer":true, | |
"server_side_encryption_configuration":[ | |
], | |
"versioning":true, | |
"website":[ | |
], | |
"website_domain":true, | |
"website_endpoint":true | |
} | |
} | |
}, | |
{ | |
"address":"module.lkft_runner_cache.aws_s3_bucket.s3bucket", | |
"module_address":"module.lkft_runner_cache", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"acl":"private", | |
"bucket":"lkft-runner-cache", | |
"bucket_prefix":null, | |
"cors_rule":[ | |
], | |
"force_destroy":false, | |
"grant":[ | |
], | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"policy":null, | |
"replication_configuration":[ | |
], | |
"server_side_encryption_configuration":[ | |
], | |
"tags":null, | |
"website":[ | |
] | |
}, | |
"after_unknown":{ | |
"acceleration_status":true, | |
"arn":true, | |
"bucket_domain_name":true, | |
"bucket_regional_domain_name":true, | |
"cors_rule":[ | |
], | |
"grant":[ | |
], | |
"hosted_zone_id":true, | |
"id":true, | |
"lifecycle_rule":[ | |
], | |
"logging":[ | |
], | |
"object_lock_configuration":[ | |
], | |
"region":true, | |
"replication_configuration":[ | |
], | |
"request_payer":true, | |
"server_side_encryption_configuration":[ | |
], | |
"versioning":true, | |
"website":[ | |
], | |
"website_domain":true, | |
"website_endpoint":true | |
} | |
} | |
}, | |
{ | |
"address":"module.s3_runner_policy.aws_iam_role_policy.role_policy", | |
"module_address":"module.s3_runner_policy", | |
"mode":"managed", | |
"type":"aws_iam_role_policy", | |
"name":"role_policy", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"name_prefix":null, | |
"policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\"s3:PutObject\",\"s3:GetObject\",\"s3:GetObjectAcl\",\"s3:PutObjectAcl\"],\n \"Effect\": \"Allow\",\n \"Resource\": [\"arn:aws:s3:::lkft-runner-*/*\"]\n }\n ]\n}\n" | |
}, | |
"after_unknown":{ | |
"id":true, | |
"name":true, | |
"role":true | |
} | |
} | |
}, | |
{ | |
"address":"module.s3_write_policy.aws_iam_role_policy.role_policy", | |
"module_address":"module.s3_write_policy", | |
"mode":"managed", | |
"type":"aws_iam_role_policy", | |
"name":"role_policy", | |
"provider_name":"aws", | |
"change":{ | |
"actions":[ | |
"create" | |
], | |
"before":null, | |
"after":{ | |
"name_prefix":null, | |
"policy":"{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\"s3:AbortMultipartUpload\",\"s3:CompleteMultipartUpload\",\"s3:ListBucket\",\"s3:PutObject\",\"s3:GetObject\",\"s3:DeleteObject\",\"s3:PutObjectAcl\"],\n \"Effect\": \"Allow\",\n \"Resource\": [\"arn:aws:s3:::lkft-gl-*/*\"]\n }\n ]\n}\n" | |
}, | |
"after_unknown":{ | |
"id":true, | |
"name":true, | |
"role":true | |
} | |
} | |
} | |
], | |
"prior_state":{ | |
"format_version":"0.1", | |
"terraform_version":"0.12.28", | |
"values":{ | |
"root_module":{ | |
"resources":[ | |
{ | |
"address":"data.aws_ami.ubuntu-amd64", | |
"mode":"data", | |
"type":"aws_ami", | |
"name":"ubuntu-amd64", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"architecture":"x86_64", | |
"arn":"arn:aws:ec2:us-east-1::image/ami-02fe94dee086c0c37", | |
"block_device_mappings":[ | |
{ | |
"device_name":"/dev/sda1", | |
"ebs":{ | |
"delete_on_termination":"true", | |
"encrypted":"false", | |
"iops":"0", | |
"snapshot_id":"snap-074c9b6e7aeb0e066", | |
"throughput":"0", | |
"volume_size":"8", | |
"volume_type":"gp2" | |
}, | |
"no_device":"", | |
"virtual_name":"" | |
}, | |
{ | |
"device_name":"/dev/sdb", | |
"ebs":{ | |
}, | |
"no_device":"", | |
"virtual_name":"ephemeral0" | |
}, | |
{ | |
"device_name":"/dev/sdc", | |
"ebs":{ | |
}, | |
"no_device":"", | |
"virtual_name":"ephemeral1" | |
} | |
], | |
"creation_date":"2021-01-28T19:54:39.000Z", | |
"description":"Canonical, Ubuntu, 18.04 LTS, amd64 bionic image build on 2021-01-28", | |
"executable_users":null, | |
"filter":[ | |
{ | |
"name":"name", | |
"values":[ | |
"ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*" | |
] | |
} | |
], | |
"hypervisor":"xen", | |
"id":"ami-02fe94dee086c0c37", | |
"image_id":"ami-02fe94dee086c0c37", | |
"image_location":"099720109477/ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20210128", | |
"image_owner_alias":null, | |
"image_type":"machine", | |
"kernel_id":null, | |
"most_recent":true, | |
"name":"ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20210128", | |
"name_regex":null, | |
"owner_id":"099720109477", | |
"owners":[ | |
"099720109477" | |
], | |
"platform":null, | |
"product_codes":[ | |
], | |
"public":true, | |
"ramdisk_id":null, | |
"root_device_name":"/dev/sda1", | |
"root_device_type":"ebs", | |
"root_snapshot_id":"snap-074c9b6e7aeb0e066", | |
"sriov_net_support":"simple", | |
"state":"available", | |
"state_reason":{ | |
"code":"UNSET", | |
"message":"UNSET" | |
}, | |
"tags":{ | |
}, | |
"virtualization_type":"hvm" | |
} | |
}, | |
{ | |
"address":"data.aws_ami.ubuntu-arm64", | |
"mode":"data", | |
"type":"aws_ami", | |
"name":"ubuntu-arm64", | |
"provider_name":"aws", | |
"schema_version":0, | |
"values":{ | |
"architecture":"arm64", | |
"arn":"arn:aws:ec2:us-east-1::image/ami-0b82a18ec136832aa", | |
"block_device_mappings":[ | |
{ | |
"device_name":"/dev/sda1", | |
"ebs":{ | |
"delete_on_termination":"true", | |
"encrypted":"false", | |
"iops":"0", | |
"snapshot_id":"snap-06f8c32134c75b9c3", | |
"throughput":"0", | |
"volume_size":"8", | |
"volume_type":"gp2" | |
}, | |
"no_device":"", | |
"virtual_name":"" | |
}, | |
{ | |
"device_name":"/dev/sdb", | |
"ebs":{ | |
}, | |
"no_device":"", | |
"virtual_name":"ephemeral0" | |
}, | |
{ | |
"device_name":"/dev/sdc", | |
"ebs":{ | |
}, | |
"no_device":"", | |
"virtual_name":"ephemeral1" | |
} | |
], | |
"creation_date":"2021-01-28T20:03:11.000Z", | |
"description":"Canonical, Ubuntu, 18.04 LTS, arm64 bionic image build on 2021-01-28", | |
"executable_users":null, | |
"filter":[ | |
{ | |
"name":"name", | |
"values":[ | |
"ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-arm64-server-*" | |
] | |
} | |
], | |
"hypervisor":"xen", | |
"id":"ami-0b82a18ec136832aa", | |
"image_id":"ami-0b82a18ec136832aa", | |
"image_location":"099720109477/ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-arm64-server-20210128", | |
"image_owner_alias":null, | |
"image_type":"machine", | |
"kernel_id":null, | |
"most_recent":true, | |
"name":"ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-arm64-server-20210128", | |
"name_regex":null, | |
"owner_id":"099720109477", | |
"owners":[ | |
"099720109477" | |
], | |
"platform":null, | |
"product_codes":[ | |
], | |
"public":true, | |
"ramdisk_id":null, | |
"root_device_name":"/dev/sda1", | |
"root_device_type":"ebs", | |
"root_snapshot_id":"snap-06f8c32134c75b9c3", | |
"sriov_net_support":"simple", | |
"state":"available", | |
"state_reason":{ | |
"code":"UNSET", | |
"message":"UNSET" | |
}, | |
"tags":{ | |
}, | |
"virtualization_type":"hvm" | |
} | |
}, | |
{ | |
"address":"data.template_cloudinit_config.config", | |
"mode":"data", | |
"type":"template_cloudinit_config", | |
"name":"config", | |
"provider_name":"template", | |
"schema_version":0, | |
"values":{ | |
"base64_encode":true, | |
"gzip":true, | |
"id":"4126478128", | |
"part":[ | |
{ | |
"content":"#!/bin/sh\nset -ex\n\nset -o nounset\nset -o errexit\n\nVOLUME_DEV=\"/dev/nvme1n1\"\nVOLUME_NAME=\"lkft-gitlab-data\"\nMOUNT_POINT=/srv\nFS=\"ext4\"\n\n\necho \"===\u003e UserData Script: Start\"\n\necho \"---\u003e Waiting for ${VOLUME_DEV} (. = 5s)\"\nwhile [[ ! -e ${VOLUME_DEV} ]]; do\n sleep 5s;\n echo -n \".\"\ndone\necho ''\n\necho '---\u003e Creating File System'\nmkfs -t ${FS} -L \"${VOLUME_NAME}\" ${VOLUME_DEV}\n\necho '---\u003e Creating Mount point'\nmkdir -p ${MOUNT_POINT}\n\necho '---\u003e Saving Mount point'\necho \"${VOLUME_DEV} ${MOUNT_POINT} ${FS} defaults,nofail 0 1\" | tee -a /etc/fstab\n\necho '---\u003e Mount EBS'\nmount ${MOUNT_POINT}\n\necho \"===\u003e UserData Script: Done\"\n", | |
"content_type":"text/x-shellscript", | |
"filename":"", | |
"merge_type":"" | |
} | |
], | |
"rendered":"H4sIAAAAAAAA/3SScWsaQRDF/x/wO0y2AVvo5iI0FJQLJPGEQE5LTy0lhLB6c7rkbvfYHe2J9bsXz5hqTf+bYd+839vZvbOGybAcrkpqY7HIWZfKcVDoitIOTuzCpMqtQhHfx9HtYNTv3nz/KWDbyTE5r61pY+visgENkPJQ1IA3b6eMz8jJyExtqs2sjV8nmg8ENZyp4qCSfk557qdOl9yAWBd0wvlwFky0CfwcPDFKqmBXWDR2YTzxviXnqNIMMB48jOLouRuNQxGktAzMsqCWaYn9Sf8mjkKRv2QsZ5pzNZGpYiUgHoz6w+dvg/v+MAy8W0IvCQVV/EUAAE3nFkUYhtc48uS6ihUmdfA2Jqwci71GSnmNP5RmbWaYWYfn67+RNvjxAkO88p8E/JrrnPDxEc9Q0j+qp6cOphYQfU5U4pXvAGLtLw2KCwGpNbQDNpuv5GZNvnOkanRv656sPFPRhOIl8ygZz9e9ZIPyAcUbb7uOjTjmv+8Y24VhLK02vHVMtUNZ4vn6YHHHk4lansztlnR822OL15ApZWqRs/9sbKZ0jpfYEvgbmQilwoB4GmSe1eSIuENFt0kTirp8N91/3rFrDYmTvy1lA/4EAAD//73sZo06AwAA" | |
} | |
}, | |
{ | |
"address":"data.template_file.script", | |
"mode":"data", | |
"type":"template_file", | |
"name":"script", | |
"provider_name":"template", | |
"schema_version":0, | |
"values":{ | |
"filename":null, | |
"id":"a82f682ccc3e9f1c2c167fa5921bd0ff765151d3b6509125599aab5dcf974680", | |
"rendered":"#!/bin/sh\nset -ex\n\nset -o nounset\nset -o errexit\n\nVOLUME_DEV=\"/dev/nvme1n1\"\nVOLUME_NAME=\"lkft-gitlab-data\"\nMOUNT_POINT=/srv\nFS=\"ext4\"\n\n\necho \"===\u003e UserData Script: Start\"\n\necho \"---\u003e Waiting for ${VOLUME_DEV} (. = 5s)\"\nwhile [[ ! -e ${VOLUME_DEV} ]]; do\n sleep 5s;\n echo -n \".\"\ndone\necho ''\n\necho '---\u003e Creating File System'\nmkfs -t ${FS} -L \"${VOLUME_NAME}\" ${VOLUME_DEV}\n\necho '---\u003e Creating Mount point'\nmkdir -p ${MOUNT_POINT}\n\necho '---\u003e Saving Mount point'\necho \"${VOLUME_DEV} ${MOUNT_POINT} ${FS} defaults,nofail 0 1\" | tee -a /etc/fstab\n\necho '---\u003e Mount EBS'\nmount ${MOUNT_POINT}\n\necho \"===\u003e UserData Script: Done\"\n", | |
"template":"#!/bin/sh\nset -ex\n\nset -o nounset\nset -o errexit\n\nVOLUME_DEV=\"/dev/nvme1n1\"\nVOLUME_NAME=\"${volume}\"\nMOUNT_POINT=/srv\nFS=\"ext4\"\n\n\necho \"===\u003e UserData Script: Start\"\n\necho \"---\u003e Waiting for $${VOLUME_DEV} (. = 5s)\"\nwhile [[ ! -e $${VOLUME_DEV} ]]; do\n sleep 5s;\n echo -n \".\"\ndone\necho ''\n\necho '---\u003e Creating File System'\nmkfs -t $${FS} -L \"$${VOLUME_NAME}\" $${VOLUME_DEV}\n\necho '---\u003e Creating Mount point'\nmkdir -p $${MOUNT_POINT}\n\necho '---\u003e Saving Mount point'\necho \"$${VOLUME_DEV} $${MOUNT_POINT} $${FS} defaults,nofail 0 1\" | tee -a /etc/fstab\n\necho '---\u003e Mount EBS'\nmount $${MOUNT_POINT}\n\necho \"===\u003e UserData Script: Done\"\n", | |
"vars":{ | |
"volume":"lkft-gitlab-data" | |
} | |
} | |
} | |
] | |
} | |
} | |
}, | |
"configuration":{ | |
"provider_config":{ | |
"aws":{ | |
"name":"aws", | |
"expressions":{ | |
"region":{ | |
"constant_value":"us-east-1" | |
} | |
} | |
} | |
}, | |
"root_module":{ | |
"resources":[ | |
{ | |
"address":"aws_ebs_volume.lkft-gitlab-cache", | |
"mode":"managed", | |
"type":"aws_ebs_volume", | |
"name":"lkft-gitlab-cache", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"availability_zone":{ | |
"constant_value":"us-east-1a" | |
}, | |
"size":{ | |
"constant_value":"500" | |
}, | |
"tags":{ | |
"constant_value":{ | |
"Name":"lkft-gitlab-cache" | |
} | |
}, | |
"type":{ | |
"constant_value":"st1" | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"aws_eip.lkft-gitlab-runner-manager-ip", | |
"mode":"managed", | |
"type":"aws_eip", | |
"name":"lkft-gitlab-runner-manager-ip", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"instance":{ | |
"references":[ | |
"aws_instance.lkft-gitlab-runner-manager" | |
] | |
}, | |
"vpc":{ | |
"constant_value":true | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"aws_instance.lkft-gitlab-runner-manager", | |
"mode":"managed", | |
"type":"aws_instance", | |
"name":"lkft-gitlab-runner-manager", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"ami":{ | |
"constant_value":"ami-0f09eaf66dffb40fd" | |
}, | |
"iam_instance_profile":{ | |
"constant_value":"gitlab_runner_manager_instance_profile" | |
}, | |
"instance_type":{ | |
"constant_value":"t4g.micro" | |
}, | |
"key_name":{ | |
"references":[ | |
"var.ami_key_pair_name" | |
] | |
}, | |
"subnet_id":{ | |
"references":[ | |
"aws_subnet.lkft-subnet" | |
] | |
}, | |
"tags":{ | |
"constant_value":{ | |
"Name":"lkft Gitlab runner manager" | |
} | |
}, | |
"vpc_security_group_ids":{ | |
"references":[ | |
"aws_security_group.lkft-sg" | |
] | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"aws_internet_gateway.lkft-gw", | |
"mode":"managed", | |
"type":"aws_internet_gateway", | |
"name":"lkft-gw", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"aws_route53_record.lkft-gitlab-runner-manager-dns", | |
"mode":"managed", | |
"type":"aws_route53_record", | |
"name":"lkft-gitlab-runner-manager-dns", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"name":{ | |
"constant_value":"gitlab-runner-manager" | |
}, | |
"records":{ | |
"references":[ | |
"aws_eip.lkft-gitlab-runner-manager-ip" | |
] | |
}, | |
"ttl":{ | |
"constant_value":"60" | |
}, | |
"type":{ | |
"constant_value":"A" | |
}, | |
"zone_id":{ | |
"references":[ | |
"var.route53_zone_id" | |
] | |
} | |
}, | |
"schema_version":2 | |
}, | |
{ | |
"address":"aws_route_table.lkft-route-table", | |
"mode":"managed", | |
"type":"aws_route_table", | |
"name":"lkft-route-table", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"tags":{ | |
"constant_value":{ | |
"Name":"lkft-route-table" | |
} | |
}, | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-a-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-a-association", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"route_table_id":{ | |
"references":[ | |
"aws_route_table.lkft-route-table" | |
] | |
}, | |
"subnet_id":{ | |
"references":[ | |
"aws_subnet.lkft-runner-subnet-a" | |
] | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-b-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-b-association", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"route_table_id":{ | |
"references":[ | |
"aws_route_table.lkft-route-table" | |
] | |
}, | |
"subnet_id":{ | |
"references":[ | |
"aws_subnet.lkft-runner-subnet-b" | |
] | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-c-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-c-association", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"route_table_id":{ | |
"references":[ | |
"aws_route_table.lkft-route-table" | |
] | |
}, | |
"subnet_id":{ | |
"references":[ | |
"aws_subnet.lkft-runner-subnet-c" | |
] | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-runner-subnet-d-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-runner-subnet-d-association", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"route_table_id":{ | |
"references":[ | |
"aws_route_table.lkft-route-table" | |
] | |
}, | |
"subnet_id":{ | |
"references":[ | |
"aws_subnet.lkft-runner-subnet-d" | |
] | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"aws_route_table_association.lkft-subnet-association", | |
"mode":"managed", | |
"type":"aws_route_table_association", | |
"name":"lkft-subnet-association", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"route_table_id":{ | |
"references":[ | |
"aws_route_table.lkft-route-table" | |
] | |
}, | |
"subnet_id":{ | |
"references":[ | |
"aws_subnet.lkft-subnet" | |
] | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"aws_security_group.lkft-runner-sg", | |
"mode":"managed", | |
"type":"aws_security_group", | |
"name":"lkft-runner-sg", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"description":{ | |
"constant_value":"LKFT runners SG" | |
}, | |
"name":{ | |
"constant_value":"lkft-runners.linaro.org" | |
}, | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"aws_security_group.lkft-sg", | |
"mode":"managed", | |
"type":"aws_security_group", | |
"name":"lkft-sg", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"description":{ | |
"constant_value":"Standard Security group" | |
}, | |
"name":{ | |
"constant_value":"lkft.linaro.org" | |
}, | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"aws_security_group.lkft-web-sg", | |
"mode":"managed", | |
"type":"aws_security_group", | |
"name":"lkft-web-sg", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"description":{ | |
"constant_value":"Inbound HTTP/HTTPS access" | |
}, | |
"name":{ | |
"constant_value":"lkft-web.linaro.org" | |
}, | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-a", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-a", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"availability_zone":{ | |
"constant_value":"us-east-1a" | |
}, | |
"cidr_block":{ | |
"constant_value":"10.0.2.0/24" | |
}, | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-b", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-b", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"availability_zone":{ | |
"constant_value":"us-east-1b" | |
}, | |
"cidr_block":{ | |
"constant_value":"10.0.3.0/24" | |
}, | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-c", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-c", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"availability_zone":{ | |
"constant_value":"us-east-1c" | |
}, | |
"cidr_block":{ | |
"constant_value":"10.0.4.0/24" | |
}, | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"aws_subnet.lkft-runner-subnet-d", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-runner-subnet-d", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"availability_zone":{ | |
"constant_value":"us-east-1d" | |
}, | |
"cidr_block":{ | |
"constant_value":"10.0.5.0/24" | |
}, | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"aws_subnet.lkft-subnet", | |
"mode":"managed", | |
"type":"aws_subnet", | |
"name":"lkft-subnet", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"availability_zone":{ | |
"constant_value":"us-east-1a" | |
}, | |
"cidr_block":{ | |
"constant_value":"10.0.1.0/24" | |
}, | |
"vpc_id":{ | |
"references":[ | |
"aws_vpc.lkft-vpc" | |
] | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"aws_vpc.lkft-vpc", | |
"mode":"managed", | |
"type":"aws_vpc", | |
"name":"lkft-vpc", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"cidr_block":{ | |
"constant_value":"10.0.0.0/16" | |
}, | |
"enable_dns_hostnames":{ | |
"constant_value":true | |
}, | |
"enable_dns_support":{ | |
"constant_value":true | |
}, | |
"tags":{ | |
"constant_value":{ | |
"Name":"LKFT VPC" | |
} | |
} | |
}, | |
"schema_version":1 | |
}, | |
{ | |
"address":"data.aws_ami.ubuntu-amd64", | |
"mode":"data", | |
"type":"aws_ami", | |
"name":"ubuntu-amd64", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"filter":[ | |
{ | |
"name":{ | |
"constant_value":"name" | |
}, | |
"values":{ | |
"constant_value":[ | |
"ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*" | |
] | |
} | |
} | |
], | |
"most_recent":{ | |
"constant_value":true | |
}, | |
"owners":{ | |
"constant_value":[ | |
"099720109477" | |
] | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"data.aws_ami.ubuntu-arm64", | |
"mode":"data", | |
"type":"aws_ami", | |
"name":"ubuntu-arm64", | |
"provider_config_key":"aws", | |
"expressions":{ | |
"filter":[ | |
{ | |
"name":{ | |
"constant_value":"name" | |
}, | |
"values":{ | |
"constant_value":[ | |
"ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-arm64-server-*" | |
] | |
} | |
} | |
], | |
"most_recent":{ | |
"constant_value":true | |
}, | |
"owners":{ | |
"constant_value":[ | |
"099720109477" | |
] | |
} | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"data.template_cloudinit_config.config", | |
"mode":"data", | |
"type":"template_cloudinit_config", | |
"name":"config", | |
"provider_config_key":"template", | |
"expressions":{ | |
"base64_encode":{ | |
"constant_value":true | |
}, | |
"gzip":{ | |
"constant_value":true | |
}, | |
"part":[ | |
{ | |
"content":{ | |
"references":[ | |
"data.template_file.script" | |
] | |
}, | |
"content_type":{ | |
"constant_value":"text/x-shellscript" | |
} | |
} | |
] | |
}, | |
"schema_version":0 | |
}, | |
{ | |
"address":"data.template_file.script", | |
"mode":"data", | |
"type":"template_file", | |
"name":"script", | |
"provider_config_key":"template", | |
"expressions":{ | |
"template":{ | |
}, | |
"vars":{ | |
"constant_value":{ | |
"volume":"lkft-gitlab-data" | |
} | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"module_calls":{ | |
"ec2_runner_policy":{ | |
"source":"./modules/resources/role_policy", | |
"expressions":{ | |
"actions":{ | |
"constant_value":[ | |
"ec2:DescribeKeyPairs", | |
"ec2:TerminateInstances", | |
"ec2:StopInstances", | |
"ec2:StartInstances", | |
"ec2:RunInstances", | |
"ec2:RebootInstances", | |
"ec2:CreateKeyPair", | |
"ec2:DeleteKeyPair", | |
"ec2:ImportKeyPair", | |
"ec2:Describe*", | |
"ec2:CreateSecurityGroup", | |
"ec2:AuthorizeSecurityGroupIngress", | |
"ec2:CreateTags", | |
"ec2:RequestSpotInstances", | |
"ec2:CancelSpotInstanceRequests", | |
"ec2:DescribeSubnets", | |
"ec2:AssociateIamInstanceProfile", | |
"iam:CreateServiceLinkedRole", | |
"iam:PassRole" | |
] | |
}, | |
"policy_file":{ | |
"constant_value":"templates/role_policy.tmpl" | |
}, | |
"resources":{ | |
"constant_value":[ | |
"*" | |
] | |
}, | |
"role_id":{ | |
"references":[ | |
"module.gitlab_runner_manager_role.role_id" | |
] | |
} | |
}, | |
"module":{ | |
"resources":[ | |
{ | |
"address":"aws_iam_role_policy.role_policy", | |
"mode":"managed", | |
"type":"aws_iam_role_policy", | |
"name":"role_policy", | |
"provider_config_key":"ec2_runner_policy:aws", | |
"expressions":{ | |
"policy":{ | |
"references":[ | |
"var.policy_file", | |
"var.effect", | |
"var.actions", | |
"var.resources" | |
] | |
}, | |
"role":{ | |
"references":[ | |
"var.role_id" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"actions":{ | |
"default":[ | |
] | |
}, | |
"effect":{ | |
"default":"Allow" | |
}, | |
"name":{ | |
"default":"" | |
}, | |
"policy_file":{ | |
"default":"" | |
}, | |
"resources":{ | |
"default":[ | |
] | |
}, | |
"role_id":{ | |
"default":"" | |
} | |
} | |
} | |
}, | |
"gitlab_instance_profile":{ | |
"source":"./modules/resources/instance_profile", | |
"expressions":{ | |
"name":{ | |
"constant_value":"gitlab_instance_profile" | |
}, | |
"role_name":{ | |
"references":[ | |
"module.gitlab_role.name" | |
] | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_iam_instance_profile.profile" | |
] | |
} | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_iam_instance_profile.profile", | |
"mode":"managed", | |
"type":"aws_iam_instance_profile", | |
"name":"profile", | |
"provider_config_key":"gitlab_instance_profile:aws", | |
"expressions":{ | |
"name":{ | |
"references":[ | |
"var.name" | |
] | |
}, | |
"role":{ | |
"references":[ | |
"var.role_name" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"name":{ | |
"default":"gitlab_role" | |
}, | |
"role_name":{ | |
} | |
} | |
} | |
}, | |
"gitlab_role":{ | |
"source":"./modules/resources/role", | |
"expressions":{ | |
"name":{ | |
"constant_value":"gitlab_role" | |
}, | |
"policy_args":{ | |
"constant_value":{ | |
"service":"ec2.amazonaws.com" | |
} | |
}, | |
"policy_file":{ | |
"constant_value":"templates/assume_role.json" | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_iam_role.role" | |
] | |
} | |
}, | |
"name":{ | |
"expression":{ | |
"references":[ | |
"aws_iam_role.role" | |
] | |
} | |
}, | |
"role_id":{ | |
"expression":{ | |
"references":[ | |
"aws_iam_role.role" | |
] | |
}, | |
"description":"AWS Role object id for this role" | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_iam_role.role", | |
"mode":"managed", | |
"type":"aws_iam_role", | |
"name":"role", | |
"provider_config_key":"gitlab_role:aws", | |
"expressions":{ | |
"assume_role_policy":{ | |
"references":[ | |
"var.policy_file", | |
"var.policy_args" | |
] | |
}, | |
"name":{ | |
"references":[ | |
"var.name" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"name":{ | |
"default":"builder_role" | |
}, | |
"policy_args":{ | |
"default":{ | |
} | |
}, | |
"policy_file":{ | |
"default":"policies/assume_role.json" | |
} | |
} | |
} | |
}, | |
"gitlab_runner_manager_instance_profile":{ | |
"source":"./modules/resources/instance_profile", | |
"expressions":{ | |
"name":{ | |
"constant_value":"gitlab_runner_manager_instance_profile" | |
}, | |
"role_name":{ | |
"references":[ | |
"module.gitlab_runner_manager_role.name" | |
] | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_iam_instance_profile.profile" | |
] | |
} | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_iam_instance_profile.profile", | |
"mode":"managed", | |
"type":"aws_iam_instance_profile", | |
"name":"profile", | |
"provider_config_key":"gitlab_runner_manager_instance_profile:aws", | |
"expressions":{ | |
"name":{ | |
"references":[ | |
"var.name" | |
] | |
}, | |
"role":{ | |
"references":[ | |
"var.role_name" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"name":{ | |
"default":"gitlab_role" | |
}, | |
"role_name":{ | |
} | |
} | |
} | |
}, | |
"gitlab_runner_manager_role":{ | |
"source":"./modules/resources/role", | |
"expressions":{ | |
"name":{ | |
"constant_value":"gitlab_runner_manager_role" | |
}, | |
"policy_args":{ | |
"constant_value":{ | |
"service":"ec2.amazonaws.com" | |
} | |
}, | |
"policy_file":{ | |
"constant_value":"templates/assume_role.json" | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_iam_role.role" | |
] | |
} | |
}, | |
"name":{ | |
"expression":{ | |
"references":[ | |
"aws_iam_role.role" | |
] | |
} | |
}, | |
"role_id":{ | |
"expression":{ | |
"references":[ | |
"aws_iam_role.role" | |
] | |
}, | |
"description":"AWS Role object id for this role" | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_iam_role.role", | |
"mode":"managed", | |
"type":"aws_iam_role", | |
"name":"role", | |
"provider_config_key":"gitlab_runner_manager_role:aws", | |
"expressions":{ | |
"assume_role_policy":{ | |
"references":[ | |
"var.policy_file", | |
"var.policy_args" | |
] | |
}, | |
"name":{ | |
"references":[ | |
"var.name" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"name":{ | |
"default":"builder_role" | |
}, | |
"policy_args":{ | |
"default":{ | |
} | |
}, | |
"policy_file":{ | |
"default":"policies/assume_role.json" | |
} | |
} | |
} | |
}, | |
"gitlab_storage_artifacts":{ | |
"source":"./modules/resources/s3", | |
"expressions":{ | |
"acl":{ | |
"constant_value":"private" | |
}, | |
"bucket":{ | |
"constant_value":"lkft-gl-artifacts" | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"ARN of the bucket" | |
}, | |
"id":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Name of the bucket" | |
}, | |
"region":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Region of the bucket" | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_config_key":"gitlab_storage_artifacts:aws", | |
"expressions":{ | |
"acl":{ | |
"references":[ | |
"var.acl" | |
] | |
}, | |
"bucket":{ | |
"references":[ | |
"var.bucket" | |
] | |
}, | |
"tags":{ | |
"references":[ | |
"var.tags" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"acl":{ | |
"default":"private" | |
}, | |
"bucket":{ | |
}, | |
"tags":{ | |
"default":{ | |
} | |
} | |
} | |
} | |
}, | |
"lkft_gl_dependency_proxy":{ | |
"source":"./modules/resources/s3", | |
"expressions":{ | |
"acl":{ | |
"constant_value":"private" | |
}, | |
"bucket":{ | |
"constant_value":"lkft-gl-dependency-proxy" | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"ARN of the bucket" | |
}, | |
"id":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Name of the bucket" | |
}, | |
"region":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Region of the bucket" | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_config_key":"lkft_gl_dependency_proxy:aws", | |
"expressions":{ | |
"acl":{ | |
"references":[ | |
"var.acl" | |
] | |
}, | |
"bucket":{ | |
"references":[ | |
"var.bucket" | |
] | |
}, | |
"tags":{ | |
"references":[ | |
"var.tags" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"acl":{ | |
"default":"private" | |
}, | |
"bucket":{ | |
}, | |
"tags":{ | |
"default":{ | |
} | |
} | |
} | |
} | |
}, | |
"lkft_gl_external_diffs":{ | |
"source":"./modules/resources/s3", | |
"expressions":{ | |
"acl":{ | |
"constant_value":"private" | |
}, | |
"bucket":{ | |
"constant_value":"lkft-gl-external-diffs" | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"ARN of the bucket" | |
}, | |
"id":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Name of the bucket" | |
}, | |
"region":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Region of the bucket" | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_config_key":"lkft_gl_external_diffs:aws", | |
"expressions":{ | |
"acl":{ | |
"references":[ | |
"var.acl" | |
] | |
}, | |
"bucket":{ | |
"references":[ | |
"var.bucket" | |
] | |
}, | |
"tags":{ | |
"references":[ | |
"var.tags" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"acl":{ | |
"default":"private" | |
}, | |
"bucket":{ | |
}, | |
"tags":{ | |
"default":{ | |
} | |
} | |
} | |
} | |
}, | |
"lkft_gl_lfs_objects":{ | |
"source":"./modules/resources/s3", | |
"expressions":{ | |
"acl":{ | |
"constant_value":"private" | |
}, | |
"bucket":{ | |
"constant_value":"lkft-gl-lfs-objects" | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"ARN of the bucket" | |
}, | |
"id":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Name of the bucket" | |
}, | |
"region":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Region of the bucket" | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_config_key":"lkft_gl_lfs_objects:aws", | |
"expressions":{ | |
"acl":{ | |
"references":[ | |
"var.acl" | |
] | |
}, | |
"bucket":{ | |
"references":[ | |
"var.bucket" | |
] | |
}, | |
"tags":{ | |
"references":[ | |
"var.tags" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"acl":{ | |
"default":"private" | |
}, | |
"bucket":{ | |
}, | |
"tags":{ | |
"default":{ | |
} | |
} | |
} | |
} | |
}, | |
"lkft_gl_packages":{ | |
"source":"./modules/resources/s3", | |
"expressions":{ | |
"acl":{ | |
"constant_value":"private" | |
}, | |
"bucket":{ | |
"constant_value":"lkft-gl-packages" | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"ARN of the bucket" | |
}, | |
"id":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Name of the bucket" | |
}, | |
"region":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Region of the bucket" | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_config_key":"lkft_gl_packages:aws", | |
"expressions":{ | |
"acl":{ | |
"references":[ | |
"var.acl" | |
] | |
}, | |
"bucket":{ | |
"references":[ | |
"var.bucket" | |
] | |
}, | |
"tags":{ | |
"references":[ | |
"var.tags" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"acl":{ | |
"default":"private" | |
}, | |
"bucket":{ | |
}, | |
"tags":{ | |
"default":{ | |
} | |
} | |
} | |
} | |
}, | |
"lkft_gl_uploads":{ | |
"source":"./modules/resources/s3", | |
"expressions":{ | |
"acl":{ | |
"constant_value":"private" | |
}, | |
"bucket":{ | |
"constant_value":"lkft-gl-uploads" | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"ARN of the bucket" | |
}, | |
"id":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Name of the bucket" | |
}, | |
"region":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Region of the bucket" | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_config_key":"lkft_gl_uploads:aws", | |
"expressions":{ | |
"acl":{ | |
"references":[ | |
"var.acl" | |
] | |
}, | |
"bucket":{ | |
"references":[ | |
"var.bucket" | |
] | |
}, | |
"tags":{ | |
"references":[ | |
"var.tags" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"acl":{ | |
"default":"private" | |
}, | |
"bucket":{ | |
}, | |
"tags":{ | |
"default":{ | |
} | |
} | |
} | |
} | |
}, | |
"lkft_runner_cache":{ | |
"source":"./modules/resources/s3", | |
"expressions":{ | |
"acl":{ | |
"constant_value":"private" | |
}, | |
"bucket":{ | |
"constant_value":"lkft-runner-cache" | |
} | |
}, | |
"module":{ | |
"outputs":{ | |
"arn":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"ARN of the bucket" | |
}, | |
"id":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Name of the bucket" | |
}, | |
"region":{ | |
"expression":{ | |
"references":[ | |
"aws_s3_bucket.s3bucket" | |
] | |
}, | |
"description":"Region of the bucket" | |
} | |
}, | |
"resources":[ | |
{ | |
"address":"aws_s3_bucket.s3bucket", | |
"mode":"managed", | |
"type":"aws_s3_bucket", | |
"name":"s3bucket", | |
"provider_config_key":"lkft_runner_cache:aws", | |
"expressions":{ | |
"acl":{ | |
"references":[ | |
"var.acl" | |
] | |
}, | |
"bucket":{ | |
"references":[ | |
"var.bucket" | |
] | |
}, | |
"tags":{ | |
"references":[ | |
"var.tags" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"acl":{ | |
"default":"private" | |
}, | |
"bucket":{ | |
}, | |
"tags":{ | |
"default":{ | |
} | |
} | |
} | |
} | |
}, | |
"s3_runner_policy":{ | |
"source":"./modules/resources/role_policy", | |
"expressions":{ | |
"actions":{ | |
"constant_value":[ | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:GetObjectAcl", | |
"s3:PutObjectAcl" | |
] | |
}, | |
"policy_file":{ | |
"constant_value":"templates/role_policy.tmpl" | |
}, | |
"resources":{ | |
"constant_value":[ | |
"arn:aws:s3:::lkft-runner-*/*" | |
] | |
}, | |
"role_id":{ | |
"references":[ | |
"module.gitlab_runner_manager_role.role_id" | |
] | |
} | |
}, | |
"module":{ | |
"resources":[ | |
{ | |
"address":"aws_iam_role_policy.role_policy", | |
"mode":"managed", | |
"type":"aws_iam_role_policy", | |
"name":"role_policy", | |
"provider_config_key":"s3_runner_policy:aws", | |
"expressions":{ | |
"policy":{ | |
"references":[ | |
"var.policy_file", | |
"var.effect", | |
"var.actions", | |
"var.resources" | |
] | |
}, | |
"role":{ | |
"references":[ | |
"var.role_id" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"actions":{ | |
"default":[ | |
] | |
}, | |
"effect":{ | |
"default":"Allow" | |
}, | |
"name":{ | |
"default":"" | |
}, | |
"policy_file":{ | |
"default":"" | |
}, | |
"resources":{ | |
"default":[ | |
] | |
}, | |
"role_id":{ | |
"default":"" | |
} | |
} | |
} | |
}, | |
"s3_write_policy":{ | |
"source":"./modules/resources/role_policy", | |
"expressions":{ | |
"actions":{ | |
"constant_value":[ | |
"s3:AbortMultipartUpload", | |
"s3:CompleteMultipartUpload", | |
"s3:ListBucket", | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:DeleteObject", | |
"s3:PutObjectAcl" | |
] | |
}, | |
"policy_file":{ | |
"constant_value":"templates/role_policy.tmpl" | |
}, | |
"resources":{ | |
"constant_value":[ | |
"arn:aws:s3:::lkft-gl-*/*" | |
] | |
}, | |
"role_id":{ | |
"references":[ | |
"module.gitlab_role.role_id" | |
] | |
} | |
}, | |
"module":{ | |
"resources":[ | |
{ | |
"address":"aws_iam_role_policy.role_policy", | |
"mode":"managed", | |
"type":"aws_iam_role_policy", | |
"name":"role_policy", | |
"provider_config_key":"s3_write_policy:aws", | |
"expressions":{ | |
"policy":{ | |
"references":[ | |
"var.policy_file", | |
"var.effect", | |
"var.actions", | |
"var.resources" | |
] | |
}, | |
"role":{ | |
"references":[ | |
"var.role_id" | |
] | |
} | |
}, | |
"schema_version":0 | |
} | |
], | |
"variables":{ | |
"actions":{ | |
"default":[ | |
] | |
}, | |
"effect":{ | |
"default":"Allow" | |
}, | |
"name":{ | |
"default":"" | |
}, | |
"policy_file":{ | |
"default":"" | |
}, | |
"resources":{ | |
"default":[ | |
] | |
}, | |
"role_id":{ | |
"default":"" | |
} | |
} | |
} | |
} | |
}, | |
"variables":{ | |
"ami_key_pair_name":{ | |
}, | |
"route53_zone_id":{ | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment