{ "version": 4, "terraform_version": "1.6.2", "serial": 94, "lineage": "a100be74-c98e-0769-2d6a-bf6a2c5f3ebf", "outputs": {}, "resources": [ { "mode": "data", "type": "aws_caller_identity", "name": "current", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "account_id": "566967686773", "arn": "arn:aws:sts::566967686773:assumed-role/dynk8s-terraform/aws-go-sdk-1699926524617521431", "id": "566967686773", "user_id": "AROAYIAPIKZ25DFDOYZHT:aws-go-sdk-1699926524617521431" }, "sensitive_attributes": [] } ] }, { "mode": "data", "type": "aws_iam_policy_document", "name": "ec2_events_access_policy", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "id": "2883441170", "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"__default_statement_ID\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"SNS:Subscribe\",\n \"SNS:SetTopicAttributes\",\n \"SNS:RemovePermission\",\n \"SNS:Receive\",\n \"SNS:Publish\",\n \"SNS:ListSubscriptionsByTopic\",\n \"SNS:GetTopicAttributes\",\n \"SNS:DeleteTopic\",\n \"SNS:AddPermission\"\n ],\n \"Resource\": \"arn:aws:sns:us-east-2:566967686773:ec2-events\",\n \"Principal\": {\n \"AWS\": \"*\"\n },\n \"Condition\": {\n \"StringEquals\": {\n \"AWS:SourceOwner\": \"566967686773\"\n }\n }\n },\n {\n \"Sid\": \"AllowEventBridgePublish\",\n \"Effect\": \"Allow\",\n \"Action\": \"sns:Publish\",\n \"Resource\": \"arn:aws:sns:us-east-2:566967686773:ec2-events\",\n \"Principal\": {\n \"Service\": \"events.amazonaws.com\"\n }\n }\n ]\n}", "override_json": null, "override_policy_documents": null, "policy_id": null, "source_json": null, "source_policy_documents": null, "statement": [ { "actions": [ "SNS:AddPermission", "SNS:DeleteTopic", "SNS:GetTopicAttributes", "SNS:ListSubscriptionsByTopic", "SNS:Publish", "SNS:Receive", "SNS:RemovePermission", "SNS:SetTopicAttributes", "SNS:Subscribe" ], "condition": [ { "test": "StringEquals", "values": [ "566967686773" ], "variable": "AWS:SourceOwner" } ], "effect": "Allow", "not_actions": [], "not_principals": [], "not_resources": [], "principals": [ { "identifiers": [ "*" ], "type": "AWS" } ], "resources": [ "arn:aws:sns:us-east-2:566967686773:ec2-events" ], "sid": "__default_statement_ID" }, { "actions": [ "sns:Publish" ], "condition": [], "effect": "Allow", "not_actions": [], "not_principals": [], "not_resources": [], "principals": [ { "identifiers": [ "events.amazonaws.com" ], "type": "Service" } ], "resources": [ "arn:aws:sns:us-east-2:566967686773:ec2-events" ], "sid": "AllowEventBridgePublish" } ], "version": "2012-10-17" }, "sensitive_attributes": [] } ] }, { "mode": "managed", "type": "aws_autoscaling_group", "name": "k8s-aarch64", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:autoscaling:us-east-2:566967686773:autoScalingGroup:e5c074b6-9c58-478c-92ec-f0685465ca3d:autoScalingGroupName/k8s-aarch64", "availability_zones": [ "us-east-2a", "us-east-2b", "us-east-2c" ], "capacity_rebalance": false, "context": "", "default_cooldown": 300, "default_instance_warmup": 0, "desired_capacity": 0, "enabled_metrics": [], "force_delete": false, "force_delete_warm_pool": false, "health_check_grace_period": 300, "health_check_type": "EC2", "id": "k8s-aarch64", "initial_lifecycle_hook": [], "instance_refresh": [], "launch_configuration": "", "launch_template": [ { "id": "lt-0789a3800bdaec215", "name": "k8s-aarch64", "version": "$Default" } ], "load_balancers": [], "max_instance_lifetime": 0, "max_size": 1, "metrics_granularity": "1Minute", "min_elb_capacity": null, "min_size": 0, "mixed_instances_policy": [], "name": "k8s-aarch64", "name_prefix": "", "placement_group": "", "protect_from_scale_in": false, "service_linked_role_arn": "arn:aws:iam::566967686773:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling", "suspended_processes": [], "tag": [ { "key": "k8s.io/cluster-autoscaler/enabled", "propagate_at_launch": true, "value": "true" }, { "key": "k8s.io/cluster-autoscaler/kubernetes", "propagate_at_launch": true, "value": "owned" } ], "tags": null, "target_group_arns": [], "termination_policies": [], "timeouts": null, "vpc_zone_identifier": [], "wait_for_capacity_timeout": "10m", "wait_for_elb_capacity": null, "warm_pool": [] }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDAsInVwZGF0ZSI6NjAwMDAwMDAwMDAwfX0=", "dependencies": [ "aws_launch_template.k8s-aarch64", "aws_security_group.k8s-node" ] } ] }, { "mode": "managed", "type": "aws_cloudwatch_event_rule", "name": "instance_state", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:events:us-east-2:566967686773:rule/instance-state-events", "description": "", "event_bus_name": "default", "event_pattern": "{\"detail-type\":[\"EC2 Instance State-change Notification\"],\"source\":[\"aws.ec2\"]}", "id": "instance-state-events", "is_enabled": true, "name": "instance-state-events", "name_prefix": "", "role_arn": "", "schedule_expression": "", "tags": {}, "tags_all": {} }, "sensitive_attributes": [], "private": "bnVsbA==" } ] }, { "mode": "managed", "type": "aws_cloudwatch_event_target", "name": "sns", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 1, "attributes": { "arn": "arn:aws:sns:us-east-2:566967686773:ec2-events", "batch_target": [], "dead_letter_config": [], "ecs_target": [], "event_bus_name": "default", "http_target": [], "id": "instance-state-events-SendToSNS", "input": "", "input_path": "", "input_transformer": [], "kinesis_target": [], "redshift_target": [], "retry_policy": [], "role_arn": "", "rule": "instance-state-events", "run_command_targets": [], "sqs_target": [], "target_id": "SendToSNS" }, "sensitive_attributes": [], "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", "dependencies": [ "aws_cloudwatch_event_rule.instance_state", "aws_sns_topic.ec2_events" ] } ] }, { "mode": "managed", "type": "aws_launch_template", "name": "k8s-aarch64", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:ec2:us-east-2:566967686773:launch-template/lt-0789a3800bdaec215", "block_device_mappings": [], "capacity_reservation_specification": [], "cpu_options": [], "credit_specification": [], "default_version": 19, "description": "", "disable_api_stop": false, "disable_api_termination": false, "ebs_optimized": "", "elastic_gpu_specifications": [], "elastic_inference_accelerator": [], "enclave_options": [], "hibernation_options": [], "iam_instance_profile": [], "id": "lt-0789a3800bdaec215", "image_id": "ami-0dcd72048e69236de", "instance_initiated_shutdown_behavior": "", "instance_market_options": [ { "market_type": "spot", "spot_options": [] } ], "instance_requirements": [], "instance_type": "t4g.medium", "kernel_id": "", "key_name": "dustin@rosalina", "latest_version": 19, "license_specification": [], "maintenance_options": [], "metadata_options": [], "monitoring": [], "name": "k8s-aarch64", "name_prefix": "", "network_interfaces": [], "placement": [], "private_dns_name_options": [ { "enable_resource_name_dns_a_record": false, "enable_resource_name_dns_aaaa_record": false, "hostname_type": "resource-name" } ], "ram_disk_id": "", "security_group_names": [ "k8s-node" ], "tag_specifications": [], "tags": {}, "tags_all": {}, "update_default_version": true, "user_data": "I2Nsb3VkLWNvbmZpZwpib290Y21kOgotIFsgZG5mLCBtb2R1bGUsIGVuYWJsZSwgJ2NyaS1vOjEuMjUnLCAteSBdCi0gWyBsbiwgLXNmLCAvcnVuL3N5c3RlbWQvcmVzb2x2ZS9zdHViLXJlc29sdi5jb25mLCAvZXRjL3Jlc29sdi5jb25mIF0KCnBhY2thZ2VzOgotIGNyaS1vCi0gY3JpLXRvb2xzCi0gZXRodG9vbAotIGlwdGFibGVzLW5mdAotIGlzY3NpLWluaXRpYXRvci11dGlscwotIGt1YmVybmV0ZXMta3ViZWFkbQotIGt1YmVybmV0ZXMtbm9kZQotIHJ1bmMKLSB3aXJlZ3VhcmQtdG9vbHMKCndyaXRlX2ZpbGVzOgotIH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iAgICAgICAgY29uZmlnOiAvdmFyL2xpYi9rdWJlbGV0L2NvbmZpZy55YW1sCiAgICBkaXNjb3Zlcnk6CiAgICAgIGZpbGU6CiAgICAgICAga3ViZUNvbmZpZ1BhdGg6ICR7QkFTRV9VUkx9L2t1YmVhZG0va3ViZWNvbmZpZy8ke2luc3RhbmNlX2lkfQogICAgRU9GCiAgICBrdWJlYWRtIGpvaW4gLS1jb25maWc9L3J1bi9qb2luY29uZmlndXJhdGlvbgoKcnVuY21kOgotIFsgZG5mLCByZW1vdmUsIC15LCB6cmFtLWdlbmVyYXRvciBdCg==", "vpc_security_group_ids": [] }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "aws_security_group.k8s-node" ] } ] }, { "mode": "managed", "type": "aws_security_group", "name": "k8s-node", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 1, "attributes": { "arn": "arn:aws:ec2:us-east-2:566967686773:security-group/sg-05258c3ff1812e83b", "description": "Kubernetes Node", "egress": [ { "cidr_blocks": [ "0.0.0.0/0" ], "description": "", "from_port": 19998, "ipv6_cidr_blocks": [ "::/0" ], "prefix_list_ids": [], "protocol": "udp", "security_groups": [], "self": false, "to_port": 19998 }, { "cidr_blocks": [ "0.0.0.0/0" ], "description": "", "from_port": 443, "ipv6_cidr_blocks": [ "::/0" ], "prefix_list_ids": [], "protocol": "tcp", "security_groups": [], "self": false, "to_port": 443 }, { "cidr_blocks": [ "0.0.0.0/0" ], "description": "", "from_port": 80, "ipv6_cidr_blocks": [ "::/0" ], "prefix_list_ids": [], "protocol": "tcp", "security_groups": [], "self": false, "to_port": 80 } ], "id": "sg-05258c3ff1812e83b", "ingress": [ { "cidr_blocks": [ "108.75.85.159/32" ], "description": "", "from_port": 22, "ipv6_cidr_blocks": [], "prefix_list_ids": [], "protocol": "tcp", "security_groups": [], "self": false, "to_port": 22 } ], "name": "k8s-node", "name_prefix": "", "owner_id": "566967686773", "revoke_rules_on_delete": false, "tags": {}, "tags_all": {}, "timeouts": null, "vpc_id": "vpc-2483044d" }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=" } ] }, { "mode": "managed", "type": "aws_sns_topic", "name": "ec2_events", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "application_failure_feedback_role_arn": "", "application_success_feedback_role_arn": "", "application_success_feedback_sample_rate": 0, "arn": "arn:aws:sns:us-east-2:566967686773:ec2-events", "content_based_deduplication": false, "delivery_policy": "", "display_name": "", "fifo_topic": false, "firehose_failure_feedback_role_arn": "", "firehose_success_feedback_role_arn": "", "firehose_success_feedback_sample_rate": 0, "http_failure_feedback_role_arn": "", "http_success_feedback_role_arn": "", "http_success_feedback_sample_rate": 0, "id": "arn:aws:sns:us-east-2:566967686773:ec2-events", "kms_master_key_id": "", "lambda_failure_feedback_role_arn": "", "lambda_success_feedback_role_arn": "", "lambda_success_feedback_sample_rate": 0, "name": "ec2-events", "name_prefix": "", "owner": "566967686773", "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:Subscribe\",\"SNS:SetTopicAttributes\",\"SNS:RemovePermission\",\"SNS:Receive\",\"SNS:Publish\",\"SNS:ListSubscriptionsByTopic\",\"SNS:GetTopicAttributes\",\"SNS:DeleteTopic\",\"SNS:AddPermission\"],\"Resource\":\"arn:aws:sns:us-east-2:566967686773:ec2-events\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"566967686773\"}}},{\"Sid\":\"AllowEventBridgePublish\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"events.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"arn:aws:sns:us-east-2:566967686773:ec2-events\"}]}", "sqs_failure_feedback_role_arn": "", "sqs_success_feedback_role_arn": "", "sqs_success_feedback_sample_rate": 0, "tags": {}, "tags_all": {} }, "sensitive_attributes": [], "private": "bnVsbA==" } ] }, { "mode": "managed", "type": "aws_sns_topic_policy", "name": "ec2_events_policy", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:sns:us-east-2:566967686773:ec2-events", "id": "arn:aws:sns:us-east-2:566967686773:ec2-events", "owner": "566967686773", "policy": "{\"Statement\":[{\"Action\":[\"SNS:Subscribe\",\"SNS:SetTopicAttributes\",\"SNS:RemovePermission\",\"SNS:Receive\",\"SNS:Publish\",\"SNS:ListSubscriptionsByTopic\",\"SNS:GetTopicAttributes\",\"SNS:DeleteTopic\",\"SNS:AddPermission\"],\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"566967686773\"}},\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Resource\":\"arn:aws:sns:us-east-2:566967686773:ec2-events\",\"Sid\":\"__default_statement_ID\"},{\"Action\":\"sns:Publish\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"events.amazonaws.com\"},\"Resource\":\"arn:aws:sns:us-east-2:566967686773:ec2-events\",\"Sid\":\"AllowEventBridgePublish\"}],\"Version\":\"2012-10-17\"}" }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "aws_sns_topic.ec2_events", "data.aws_caller_identity.current", "data.aws_iam_policy_document.ec2_events_access_policy" ] } ] }, { "mode": "managed", "type": "aws_sns_topic_subscription", "name": "dynk8s_provisoner", "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", "instances": [ { "schema_version": 0, "attributes": { "arn": "arn:aws:sns:us-east-2:566967686773:ec2-events:3be7a77b-4b89-4925-bad3-dab7223d07f3", "confirmation_timeout_in_minutes": 1, "confirmation_was_authenticated": false, "delivery_policy": "", "endpoint": "https://dynk8s-provisioner.pyrocufflink.net/sns/notify", "endpoint_auto_confirms": false, "filter_policy": "", "id": "arn:aws:sns:us-east-2:566967686773:ec2-events:3be7a77b-4b89-4925-bad3-dab7223d07f3", "owner_id": "566967686773", "pending_confirmation": false, "protocol": "https", "raw_message_delivery": false, "redrive_policy": "", "subscription_role_arn": "", "topic_arn": "arn:aws:sns:us-east-2:566967686773:ec2-events" }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "aws_sns_topic.ec2_events" ] } ] } ], "check_results": null }