sigs.k8s.io/cluster-api-provider-aws@v1.5.5/docs/book/terraform/terraform.tfstate (about)

     1  {
     2    "version": 4,
     3    "terraform_version": "0.14.6",
     4    "serial": 52,
     5    "lineage": "51a1e654-53ea-c04a-e76f-982a0c22c0c1",
     6    "outputs": {},
     7    "resources": [
     8      {
     9        "mode": "data",
    10        "type": "archive_file",
    11        "name": "zip",
    12        "provider": "provider[\"registry.terraform.io/hashicorp/archive\"]",
    13        "instances": [
    14          {
    15            "schema_version": 0,
    16            "attributes": {
    17              "excludes": null,
    18              "id": "ca8a614350dbc23d281302ec4568961d805e4a74",
    19              "output_base64sha256": "IIRV3yBO0geadCqCpHIkc/VuxmmLQu8QhoWrhT1qY2A=",
    20              "output_md5": "3f1d7eda92815d217c7b21cf246ab5f9",
    21              "output_path": "amilist.zip",
    22              "output_sha": "ca8a614350dbc23d281302ec4568961d805e4a74",
    23              "output_size": 24445390,
    24              "source": [],
    25              "source_content": null,
    26              "source_content_filename": null,
    27              "source_dir": "out",
    28              "source_file": null,
    29              "type": "zip"
    30            },
    31            "sensitive_attributes": []
    32          }
    33        ]
    34      },
    35      {
    36        "mode": "data",
    37        "type": "aws_iam_policy_document",
    38        "name": "s3_policy",
    39        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
    40        "instances": [
    41          {
    42            "schema_version": 0,
    43            "attributes": {
    44              "id": "1306388218",
    45              "json": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"\",\n      \"Effect\": \"Allow\",\n      \"Action\": \"s3:GetObject\",\n      \"Resource\": \"arn:aws:s3:::cluster-api-aws-amis.sigs.k8s.io/*\",\n      \"Principal\": {\n        \"AWS\": \"arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E3OY8ULRY8K6WY\"\n      }\n    }\n  ]\n}",
    46              "override_json": null,
    47              "override_policy_documents": null,
    48              "policy_id": null,
    49              "source_json": null,
    50              "source_policy_documents": null,
    51              "statement": [
    52                {
    53                  "actions": [
    54                    "s3:GetObject"
    55                  ],
    56                  "condition": [],
    57                  "effect": "Allow",
    58                  "not_actions": [],
    59                  "not_principals": [],
    60                  "not_resources": [],
    61                  "principals": [
    62                    {
    63                      "identifiers": [
    64                        "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E3OY8ULRY8K6WY"
    65                      ],
    66                      "type": "AWS"
    67                    }
    68                  ],
    69                  "resources": [
    70                    "arn:aws:s3:::cluster-api-aws-amis.sigs.k8s.io/*"
    71                  ],
    72                  "sid": ""
    73                }
    74              ],
    75              "version": "2012-10-17"
    76            },
    77            "sensitive_attributes": []
    78          }
    79        ]
    80      },
    81      {
    82        "mode": "managed",
    83        "type": "aws_cloudfront_distribution",
    84        "name": "cluster-api-aws",
    85        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
    86        "instances": [
    87          {
    88            "schema_version": 1,
    89            "attributes": {
    90              "aliases": [],
    91              "arn": "arn:aws:cloudfront::258751437250:distribution/E3IY2TVMUOKO55",
    92              "caller_reference": "terraform-20210413110416649500000002",
    93              "comment": null,
    94              "custom_error_response": [],
    95              "default_cache_behavior": [
    96                {
    97                  "allowed_methods": [
    98                    "GET",
    99                    "HEAD"
   100                  ],
   101                  "cache_policy_id": "",
   102                  "cached_methods": [
   103                    "GET",
   104                    "HEAD"
   105                  ],
   106                  "compress": false,
   107                  "default_ttl": 3600,
   108                  "field_level_encryption_id": "",
   109                  "forwarded_values": [
   110                    {
   111                      "cookies": [
   112                        {
   113                          "forward": "none",
   114                          "whitelisted_names": []
   115                        }
   116                      ],
   117                      "headers": [
   118                        "Access-Control-Request-Headers",
   119                        "Access-Control-Request-Method",
   120                        "Origin"
   121                      ],
   122                      "query_string": false,
   123                      "query_string_cache_keys": []
   124                    }
   125                  ],
   126                  "lambda_function_association": [],
   127                  "max_ttl": 3600,
   128                  "min_ttl": 60,
   129                  "origin_request_policy_id": "",
   130                  "realtime_log_config_arn": "",
   131                  "smooth_streaming": false,
   132                  "target_origin_id": "s3",
   133                  "trusted_signers": [],
   134                  "viewer_protocol_policy": "allow-all"
   135                }
   136              ],
   137              "default_root_object": "",
   138              "domain_name": "d2jcv1y6kf3xwc.cloudfront.net",
   139              "enabled": true,
   140              "etag": "E25N5L7QK9B57D",
   141              "hosted_zone_id": "Z2FDTNDATAQYW2",
   142              "http_version": "http2",
   143              "id": "E3IY2TVMUOKO55",
   144              "in_progress_validation_batches": 0,
   145              "is_ipv6_enabled": false,
   146              "last_modified_time": "2021-04-13 11:11:25.096 +0000 UTC",
   147              "logging_config": [],
   148              "ordered_cache_behavior": [],
   149              "origin": [
   150                {
   151                  "custom_header": [],
   152                  "custom_origin_config": [],
   153                  "domain_name": "cluster-api-aws-amis.sigs.k8s.io.s3.amazonaws.com",
   154                  "origin_id": "s3",
   155                  "origin_path": "",
   156                  "s3_origin_config": [
   157                    {
   158                      "origin_access_identity": "origin-access-identity/cloudfront/E3OY8ULRY8K6WY"
   159                    }
   160                  ]
   161                }
   162              ],
   163              "origin_group": [],
   164              "price_class": "PriceClass_All",
   165              "restrictions": [
   166                {
   167                  "geo_restriction": [
   168                    {
   169                      "locations": [],
   170                      "restriction_type": "none"
   171                    }
   172                  ]
   173                }
   174              ],
   175              "retain_on_delete": false,
   176              "status": "Deployed",
   177              "tags": {},
   178              "trusted_signers": [
   179                {
   180                  "enabled": false,
   181                  "items": []
   182                }
   183              ],
   184              "viewer_certificate": [
   185                {
   186                  "acm_certificate_arn": "",
   187                  "cloudfront_default_certificate": true,
   188                  "iam_certificate_id": "",
   189                  "minimum_protocol_version": "TLSv1",
   190                  "ssl_support_method": ""
   191                }
   192              ],
   193              "wait_for_deployment": true,
   194              "web_acl_id": ""
   195            },
   196            "sensitive_attributes": [],
   197            "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
   198            "dependencies": [
   199              "aws_cloudfront_origin_access_identity.cluster_api",
   200              "aws_s3_bucket.cluster-api-aws"
   201            ]
   202          }
   203        ]
   204      },
   205      {
   206        "mode": "managed",
   207        "type": "aws_cloudfront_origin_access_identity",
   208        "name": "cluster_api",
   209        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   210        "instances": [
   211          {
   212            "schema_version": 0,
   213            "attributes": {
   214              "caller_reference": "terraform-20210413110415321400000001",
   215              "cloudfront_access_identity_path": "origin-access-identity/cloudfront/E3OY8ULRY8K6WY",
   216              "comment": "Cluster API AMIs",
   217              "etag": "E1LNJQD6W3DL90",
   218              "iam_arn": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E3OY8ULRY8K6WY",
   219              "id": "E3OY8ULRY8K6WY",
   220              "s3_canonical_user_id": "198115ef486078e44eca8fd7513d7dbf7ee89459a8ad4863bd2dad9bd71106ff1b3ae817c50298769722ced1b1a449bf"
   221            },
   222            "sensitive_attributes": [],
   223            "private": "bnVsbA=="
   224          }
   225        ]
   226      },
   227      {
   228        "mode": "managed",
   229        "type": "aws_cloudwatch_event_rule",
   230        "name": "every_hour",
   231        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   232        "instances": [
   233          {
   234            "schema_version": 0,
   235            "attributes": {
   236              "arn": "arn:aws:events:us-east-1:258751437250:rule/every-hour",
   237              "description": "Fires every hour",
   238              "event_bus_name": "default",
   239              "event_pattern": null,
   240              "id": "every-hour",
   241              "is_enabled": true,
   242              "name": "every-hour",
   243              "name_prefix": "",
   244              "role_arn": "",
   245              "schedule_expression": "rate(1 hour)",
   246              "tags": {}
   247            },
   248            "sensitive_attributes": [],
   249            "private": "bnVsbA=="
   250          }
   251        ]
   252      },
   253      {
   254        "mode": "managed",
   255        "type": "aws_cloudwatch_event_target",
   256        "name": "update_amis_every_hour",
   257        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   258        "instances": [
   259          {
   260            "schema_version": 1,
   261            "attributes": {
   262              "arn": "arn:aws:lambda:us-east-1:258751437250:function:amilist",
   263              "batch_target": [],
   264              "dead_letter_config": [],
   265              "ecs_target": [],
   266              "event_bus_name": "default",
   267              "id": "every-hour-amilist",
   268              "input": "",
   269              "input_path": "",
   270              "input_transformer": [],
   271              "kinesis_target": [],
   272              "retry_policy": [],
   273              "role_arn": "",
   274              "rule": "every-hour",
   275              "run_command_targets": [],
   276              "sqs_target": [],
   277              "target_id": "amilist"
   278            },
   279            "sensitive_attributes": [],
   280            "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
   281            "dependencies": [
   282              "aws_cloudwatch_event_rule.every_hour",
   283              "aws_iam_role.iam_for_lambda",
   284              "aws_lambda_function.amilist"
   285            ]
   286          }
   287        ]
   288      },
   289      {
   290        "mode": "managed",
   291        "type": "aws_iam_role",
   292        "name": "iam_for_lambda",
   293        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   294        "instances": [
   295          {
   296            "schema_version": 0,
   297            "attributes": {
   298              "arn": "arn:aws:iam::258751437250:role/amilist-lambda",
   299              "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Action\":\"sts:AssumeRole\"}]}",
   300              "create_date": "2021-04-12T17:51:51Z",
   301              "description": "",
   302              "force_detach_policies": false,
   303              "id": "amilist-lambda",
   304              "inline_policy": [
   305                {
   306                  "name": "inline-policy",
   307                  "policy": "{\"Statement\":[{\"Action\":[\"ec2:DescribeImages\"],\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":[\"s3:*\"],\"Effect\":\"Allow\",\"Resource\":\"arn:aws:s3:::cluster-api-aws-amis.sigs.k8s.io/*\"}],\"Version\":\"2012-10-17\"}"
   308                }
   309              ],
   310              "managed_policy_arns": [
   311                "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
   312              ],
   313              "max_session_duration": 3600,
   314              "name": "amilist-lambda",
   315              "name_prefix": null,
   316              "path": "/",
   317              "permissions_boundary": null,
   318              "tags": {},
   319              "unique_id": "AROATYPWJTHBDDPRJONCU"
   320            },
   321            "sensitive_attributes": [],
   322            "private": "bnVsbA=="
   323          }
   324        ]
   325      },
   326      {
   327        "mode": "managed",
   328        "type": "aws_lambda_function",
   329        "name": "amilist",
   330        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   331        "instances": [
   332          {
   333            "schema_version": 0,
   334            "attributes": {
   335              "arn": "arn:aws:lambda:us-east-1:258751437250:function:amilist",
   336              "code_signing_config_arn": "",
   337              "dead_letter_config": [],
   338              "description": "",
   339              "environment": [],
   340              "file_system_config": [],
   341              "filename": "amilist.zip",
   342              "function_name": "amilist",
   343              "handler": "amilist",
   344              "id": "amilist",
   345              "image_config": [],
   346              "image_uri": "",
   347              "invoke_arn": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:258751437250:function:amilist/invocations",
   348              "kms_key_arn": "",
   349              "last_modified": "2021-04-13T11:11:50.649+0000",
   350              "layers": [],
   351              "memory_size": 256,
   352              "package_type": "Zip",
   353              "publish": false,
   354              "qualified_arn": "arn:aws:lambda:us-east-1:258751437250:function:amilist:$LATEST",
   355              "reserved_concurrent_executions": -1,
   356              "role": "arn:aws:iam::258751437250:role/amilist-lambda",
   357              "runtime": "go1.x",
   358              "s3_bucket": null,
   359              "s3_key": null,
   360              "s3_object_version": null,
   361              "signing_job_arn": "",
   362              "signing_profile_version_arn": "",
   363              "source_code_hash": "IIRV3yBO0geadCqCpHIkc/VuxmmLQu8QhoWrhT1qY2A=",
   364              "source_code_size": 24445390,
   365              "tags": {},
   366              "timeout": 60,
   367              "timeouts": null,
   368              "tracing_config": [
   369                {
   370                  "mode": "PassThrough"
   371                }
   372              ],
   373              "version": "$LATEST",
   374              "vpc_config": []
   375            },
   376            "sensitive_attributes": [],
   377            "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDB9fQ==",
   378            "dependencies": [
   379              "aws_iam_role.iam_for_lambda"
   380            ]
   381          }
   382        ]
   383      },
   384      {
   385        "mode": "managed",
   386        "type": "aws_lambda_permission",
   387        "name": "allow_cloudwatch_to_call_amilist",
   388        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   389        "instances": [
   390          {
   391            "schema_version": 0,
   392            "attributes": {
   393              "action": "lambda:InvokeFunction",
   394              "event_source_token": null,
   395              "function_name": "amilist",
   396              "id": "AllowExecutionFromCloudWatch",
   397              "principal": "events.amazonaws.com",
   398              "qualifier": "",
   399              "source_account": null,
   400              "source_arn": "arn:aws:events:us-east-1:258751437250:rule/every-hour",
   401              "statement_id": "AllowExecutionFromCloudWatch",
   402              "statement_id_prefix": null
   403            },
   404            "sensitive_attributes": [],
   405            "private": "bnVsbA==",
   406            "dependencies": [
   407              "aws_cloudwatch_event_rule.every_hour",
   408              "aws_iam_role.iam_for_lambda",
   409              "aws_lambda_function.amilist"
   410            ]
   411          }
   412        ]
   413      },
   414      {
   415        "mode": "managed",
   416        "type": "aws_s3_bucket",
   417        "name": "cluster-api-aws",
   418        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   419        "instances": [
   420          {
   421            "schema_version": 0,
   422            "attributes": {
   423              "acceleration_status": "",
   424              "acl": "public-read",
   425              "arn": "arn:aws:s3:::cluster-api-aws-amis.sigs.k8s.io",
   426              "bucket": "cluster-api-aws-amis.sigs.k8s.io",
   427              "bucket_domain_name": "cluster-api-aws-amis.sigs.k8s.io.s3.amazonaws.com",
   428              "bucket_prefix": null,
   429              "bucket_regional_domain_name": "cluster-api-aws-amis.sigs.k8s.io.s3.amazonaws.com",
   430              "cors_rule": [
   431                {
   432                  "allowed_headers": [
   433                    "*"
   434                  ],
   435                  "allowed_methods": [
   436                    "GET"
   437                  ],
   438                  "allowed_origins": [
   439                    "*"
   440                  ],
   441                  "expose_headers": [
   442                    "ETag"
   443                  ],
   444                  "max_age_seconds": 3000
   445                }
   446              ],
   447              "force_destroy": false,
   448              "grant": [],
   449              "hosted_zone_id": "Z3AQBSTGFYJSTF",
   450              "id": "cluster-api-aws-amis.sigs.k8s.io",
   451              "lifecycle_rule": [],
   452              "logging": [],
   453              "object_lock_configuration": [],
   454              "policy": null,
   455              "region": "us-east-1",
   456              "replication_configuration": [],
   457              "request_payer": "BucketOwner",
   458              "server_side_encryption_configuration": [],
   459              "tags": {},
   460              "versioning": [
   461                {
   462                  "enabled": false,
   463                  "mfa_delete": false
   464                }
   465              ],
   466              "website": [
   467                {
   468                  "error_document": "",
   469                  "index_document": "amis.json",
   470                  "redirect_all_requests_to": "",
   471                  "routing_rules": ""
   472                }
   473              ],
   474              "website_domain": "s3-website-us-east-1.amazonaws.com",
   475              "website_endpoint": "cluster-api-aws-amis.sigs.k8s.io.s3-website-us-east-1.amazonaws.com"
   476            },
   477            "sensitive_attributes": [],
   478            "private": "bnVsbA=="
   479          }
   480        ]
   481      },
   482      {
   483        "mode": "managed",
   484        "type": "aws_s3_bucket_policy",
   485        "name": "cluster-api",
   486        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   487        "instances": [
   488          {
   489            "schema_version": 0,
   490            "attributes": {
   491              "bucket": "cluster-api-aws-amis.sigs.k8s.io",
   492              "id": "cluster-api-aws-amis.sigs.k8s.io",
   493              "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E3OY8ULRY8K6WY\"},\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::cluster-api-aws-amis.sigs.k8s.io/*\"}]}"
   494            },
   495            "sensitive_attributes": [],
   496            "private": "bnVsbA==",
   497            "dependencies": [
   498              "aws_cloudfront_origin_access_identity.cluster_api",
   499              "aws_s3_bucket.cluster-api-aws",
   500              "data.aws_iam_policy_document.s3_policy"
   501            ]
   502          }
   503        ]
   504      }
   505    ]
   506  }