501 lines
21 KiB
JSON
501 lines
21 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.2.9",
|
|
"serial": 78,
|
|
"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-1665542385873038019",
|
|
"id": "566967686773",
|
|
"user_id": "AROAYIAPIKZ25DFDOYZHT:aws-go-sdk-1665542385873038019"
|
|
},
|
|
"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": "$Latest"
|
|
}
|
|
],
|
|
"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": 6,
|
|
"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-000ec96ccb51eb679",
|
|
"instance_initiated_shutdown_behavior": "",
|
|
"instance_market_options": [
|
|
{
|
|
"market_type": "spot",
|
|
"spot_options": []
|
|
}
|
|
],
|
|
"instance_requirements": [],
|
|
"instance_type": "t4g.medium",
|
|
"kernel_id": "",
|
|
"key_name": "",
|
|
"latest_version": 6,
|
|
"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": "I2Nsb3VkLWNvbmZpZwpib290Y21kOgotIFsgZG5mLCBtb2R1bGUsIGVuYWJsZSwgJ2NyaS1vOjEuMjInLCAteSBdCi0gWyBsbiwgLXNmLCAvcnVuL3N5c3RlbWQvcmVzb2x2ZS9zdHViLXJlc29sdi5jb25mLCAvZXRjL3Jlc29sdi5jb25mIF0KCnBhY2thZ2VzOgotIGNyaS1vCi0gY3JpLXRvb2xzCi0gZXRodG9vbAotIGlwdGFibGVzLW5mdAotIGlzY3NpLWluaXRpYXRvci11dGlscwotIGt1YmVybmV0ZXMta3ViZWFkbQotIGt1YmVybmV0ZXMtbm9kZQotIHdpcmVndWFyZC10b29scwoKd3JpdGVfZmlsZXM6Ci0gcGF0aDogL2V0Yy9kbmYvZG5mLmNvbmYKICBjb250ZW50OiB8KwogICAgaW5zdGFsbF93ZWFrX2RlcHM9RmFsc2UKICBhcHBlbmQ6IHRydWUKLSBwYXRoOiAvZXRjL21vZHVsZXMtbG9hZC5kL2s4cy5jb25mCiAgY29udGVudDogfCsKICAgIGJyX25ldGZpbHRlcgotIHBhdGg6IC9ldGMvc3lzY3RsLmQvazhzLmNvbmYKICBjb250ZW50OiB8KwogICAgbmV0LmJyaWRnZS5icmlkZ2UtbmYtY2FsbC1pcHRhYmxlcyA9IDEKICAgIG5ldC5icmlkZ2UuYnJpZGdlLW5mLWNhbGwtaXA2dGFibGVzID0gMQogICAgbmV0LmlwdjQuaXBfZm9yd2FyZCA9IDEKLSBwYXRoOiAvdmFyL2xpYi9jbG91ZC9zY3JpcHRzL3Blci1pbnN0YW5jZS9rdWJlYWRtLWpvaW4KICBwZXJtaXNzaW9uczogJzA3NTUnCiAgY29udGVudDogfCsKICAgICMhL2Jpbi9zaAoKICAgIEJBU0VfVVJMPWh0dHBzOi8vZHluazhzLXByb3Zpc2lvbmVyLnB5cm9jdWZmbGluay5uZXQKCiAgICBpbnN0YW5jZV9pZD0kKGN1cmwgLXMgMTY5LjI1NC4xNjkuMjU0L2xhdGVzdC9tZXRhLWRhdGEvaW5zdGFuY2UtaWQpCiAgICBhej0kKGN1cmwgLXMgMTY5LjI1NC4xNjkuMjU0L2xhdGVzdC9tZXRhLWRhdGEvcGxhY2VtZW50L2F2YWlsYWJpbGl0eS16b25lKQoKICAgIGN1cmwgLWZzICIke0JBU0VfVVJMfSIvd2lyZWd1YXJkL2NvbmZpZy8ke2luc3RhbmNlX2lkfSBcCiAgICAgICAgLW8gL2V0Yy93aXJlZ3VhcmQvd2cwLmNvbmYgfHwgZXhpdAogICAgc3lzdGVtY3RsIGVuYWJsZSAtLW5vdyB3Zy1xdWlja0B3ZzAgfHwgZXhpdAoKICAgIG1vZHByb2JlIGJyX25ldGZpbHRlciB8fCBleGl0CiAgICBzeXNjdGwgLXcgLWYgL2V0Yy9zeXNjdGwuZC9rOHMuY29uZiB8fCBleGl0CgogICAgc3dhcG9mZiAtYSB8fCBleGl0CiAgICB0b3VjaCAvZXRjL3N5c3RlbWQvenJhbS1nZW5lcmF0b3IuY29uZiB8fCBleGl0CiAgICBzeXN0ZW1jdGwgZGFlbW9uLXJlbG9hZCB8fCBleGl0CiAgICBzeXN0ZW1jdGwgc3RvcCAnc3lzdGVtZC16cmFtLXNldHVwQConIHx8IGV4aXQKCiAgICBzeXN0ZW1jdGwgZW5hYmxlIGNyaW8gaXNjc2lkIGt1YmVsZXQgfHwgZXhpdAogICAgc3lzdGVtY3RsIHN0YXJ0IGNyaW8gaXNjc2lkIHx8IGV4aXQKCiAgICBpbnRlcm5hbF9pcD0kKAogICAgICBpcCBhZGRyZXNzIHNob3cgZGV2IHdnMCBwcmltYXJ5IHwgXAogICAgICBzZWQgLXJuICdzLy4qaW5ldCAoWzAtOS5dKykuKi9cMS9wJwogICAgKQoKICAgIGNhdCA+IC9ydW4vam9pbmNvbmZpZ3VyYXRpb24gPDxFT0YKICAgIGFwaVZlcnNpb246IGt1YmVhZG0uazhzLmlvL3YxYmV0YTMKICAgIGtpbmQ6IEpvaW5Db25maWd1cmF0aW9uCiAgICBub2RlUmVnaXN0cmF0aW9uOgogICAgICBrdWJlbGV0RXh0cmFBcmdzOgogICAgICAgIHByb3ZpZGVyLWlkOiBhd3M6Ly8vJHthen0vJHtpbnN0YW5jZV9pZH0KICAgICAgICBub2RlLWlwOiAke2ludGVybmFsX2lwfQogICAgZGlzY292ZXJ5OgogICAgICBmaWxlOgogICAgICAgIGt1YmVDb25maWdQYXRoOiAke0JBU0VfVVJMfS9rdWJlYWRtL2t1YmVjb25maWcvJHtpbnN0YW5jZV9pZH0KICAgIEVPRgogICAga3ViZWFkbSBqb2luIC0tY29uZmlnPS9ydW4vam9pbmNvbmZpZ3VyYXRpb24KCnJ1bmNtZDoKLSBbIGRuZiwgcmVtb3ZlLCAteSwgenJhbS1nZW5lcmF0b3IgXQo=",
|
|
"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": [],
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|