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

     1  {
     2    "version": 4,
     3    "terraform_version": "0.14.6",
     4    "serial": 49,
     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                      "query_string": false,
   119                      "query_string_cache_keys": []
   120                    }
   121                  ],
   122                  "lambda_function_association": [],
   123                  "max_ttl": 3600,
   124                  "min_ttl": 60,
   125                  "origin_request_policy_id": "",
   126                  "realtime_log_config_arn": "",
   127                  "smooth_streaming": false,
   128                  "target_origin_id": "s3",
   129                  "trusted_signers": [],
   130                  "viewer_protocol_policy": "allow-all"
   131                }
   132              ],
   133              "default_root_object": "",
   134              "domain_name": "d2jcv1y6kf3xwc.cloudfront.net",
   135              "enabled": true,
   136              "etag": "E3098R1PNQIQDB",
   137              "hosted_zone_id": "Z2FDTNDATAQYW2",
   138              "http_version": "http2",
   139              "id": "E3IY2TVMUOKO55",
   140              "in_progress_validation_batches": 0,
   141              "is_ipv6_enabled": false,
   142              "last_modified_time": "2021-04-13 11:04:17.049 +0000 UTC",
   143              "logging_config": [],
   144              "ordered_cache_behavior": [],
   145              "origin": [
   146                {
   147                  "custom_header": [],
   148                  "custom_origin_config": [],
   149                  "domain_name": "cluster-api-aws-amis.sigs.k8s.io.s3.amazonaws.com",
   150                  "origin_id": "s3",
   151                  "origin_path": "",
   152                  "s3_origin_config": [
   153                    {
   154                      "origin_access_identity": "origin-access-identity/cloudfront/E3OY8ULRY8K6WY"
   155                    }
   156                  ]
   157                }
   158              ],
   159              "origin_group": [],
   160              "price_class": "PriceClass_All",
   161              "restrictions": [
   162                {
   163                  "geo_restriction": [
   164                    {
   165                      "locations": [],
   166                      "restriction_type": "none"
   167                    }
   168                  ]
   169                }
   170              ],
   171              "retain_on_delete": false,
   172              "status": "Deployed",
   173              "tags": {},
   174              "trusted_signers": [
   175                {
   176                  "enabled": false,
   177                  "items": []
   178                }
   179              ],
   180              "viewer_certificate": [
   181                {
   182                  "acm_certificate_arn": "",
   183                  "cloudfront_default_certificate": true,
   184                  "iam_certificate_id": "",
   185                  "minimum_protocol_version": "TLSv1",
   186                  "ssl_support_method": ""
   187                }
   188              ],
   189              "wait_for_deployment": true,
   190              "web_acl_id": ""
   191            },
   192            "sensitive_attributes": [],
   193            "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
   194            "dependencies": [
   195              "aws_cloudfront_origin_access_identity.cluster_api",
   196              "aws_s3_bucket.cluster-api-aws"
   197            ]
   198          }
   199        ]
   200      },
   201      {
   202        "mode": "managed",
   203        "type": "aws_cloudfront_origin_access_identity",
   204        "name": "cluster_api",
   205        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   206        "instances": [
   207          {
   208            "schema_version": 0,
   209            "attributes": {
   210              "caller_reference": "terraform-20210413110415321400000001",
   211              "cloudfront_access_identity_path": "origin-access-identity/cloudfront/E3OY8ULRY8K6WY",
   212              "comment": "Cluster API AMIs",
   213              "etag": "E1LNJQD6W3DL90",
   214              "iam_arn": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E3OY8ULRY8K6WY",
   215              "id": "E3OY8ULRY8K6WY",
   216              "s3_canonical_user_id": "198115ef486078e44eca8fd7513d7dbf7ee89459a8ad4863bd2dad9bd71106ff1b3ae817c50298769722ced1b1a449bf"
   217            },
   218            "sensitive_attributes": [],
   219            "private": "bnVsbA=="
   220          }
   221        ]
   222      },
   223      {
   224        "mode": "managed",
   225        "type": "aws_cloudwatch_event_rule",
   226        "name": "every_hour",
   227        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   228        "instances": [
   229          {
   230            "schema_version": 0,
   231            "attributes": {
   232              "arn": "arn:aws:events:us-east-1:258751437250:rule/every-hour",
   233              "description": "Fires every hour",
   234              "event_bus_name": "default",
   235              "event_pattern": null,
   236              "id": "every-hour",
   237              "is_enabled": true,
   238              "name": "every-hour",
   239              "name_prefix": "",
   240              "role_arn": "",
   241              "schedule_expression": "rate(1 hour)",
   242              "tags": {}
   243            },
   244            "sensitive_attributes": [],
   245            "private": "bnVsbA=="
   246          }
   247        ]
   248      },
   249      {
   250        "mode": "managed",
   251        "type": "aws_cloudwatch_event_target",
   252        "name": "update_amis_every_hour",
   253        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   254        "instances": [
   255          {
   256            "schema_version": 1,
   257            "attributes": {
   258              "arn": "arn:aws:lambda:us-east-1:258751437250:function:amilist",
   259              "batch_target": [],
   260              "dead_letter_config": [],
   261              "ecs_target": [],
   262              "event_bus_name": "default",
   263              "id": "every-hour-amilist",
   264              "input": "",
   265              "input_path": "",
   266              "input_transformer": [],
   267              "kinesis_target": [],
   268              "retry_policy": [],
   269              "role_arn": "",
   270              "rule": "every-hour",
   271              "run_command_targets": [],
   272              "sqs_target": [],
   273              "target_id": "amilist"
   274            },
   275            "sensitive_attributes": [],
   276            "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
   277            "dependencies": [
   278              "aws_cloudwatch_event_rule.every_hour",
   279              "aws_iam_role.iam_for_lambda",
   280              "aws_lambda_function.amilist"
   281            ]
   282          }
   283        ]
   284      },
   285      {
   286        "mode": "managed",
   287        "type": "aws_iam_role",
   288        "name": "iam_for_lambda",
   289        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   290        "instances": [
   291          {
   292            "schema_version": 0,
   293            "attributes": {
   294              "arn": "arn:aws:iam::258751437250:role/amilist-lambda",
   295              "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Action\":\"sts:AssumeRole\"}]}",
   296              "create_date": "2021-04-12T17:51:51Z",
   297              "description": "",
   298              "force_detach_policies": false,
   299              "id": "amilist-lambda",
   300              "inline_policy": [
   301                {
   302                  "name": "inline-policy",
   303                  "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\"}"
   304                }
   305              ],
   306              "managed_policy_arns": [
   307                "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
   308              ],
   309              "max_session_duration": 3600,
   310              "name": "amilist-lambda",
   311              "name_prefix": null,
   312              "path": "/",
   313              "permissions_boundary": null,
   314              "tags": {},
   315              "unique_id": "AROATYPWJTHBDDPRJONCU"
   316            },
   317            "sensitive_attributes": [],
   318            "private": "bnVsbA=="
   319          }
   320        ]
   321      },
   322      {
   323        "mode": "managed",
   324        "type": "aws_lambda_function",
   325        "name": "amilist",
   326        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   327        "instances": [
   328          {
   329            "schema_version": 0,
   330            "attributes": {
   331              "arn": "arn:aws:lambda:us-east-1:258751437250:function:amilist",
   332              "code_signing_config_arn": "",
   333              "dead_letter_config": [],
   334              "description": "",
   335              "environment": [],
   336              "file_system_config": [],
   337              "filename": "amilist.zip",
   338              "function_name": "amilist",
   339              "handler": "amilist",
   340              "id": "amilist",
   341              "image_config": [],
   342              "image_uri": "",
   343              "invoke_arn": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:258751437250:function:amilist/invocations",
   344              "kms_key_arn": "",
   345              "last_modified": "2021-04-13T11:07:47.702+0000",
   346              "layers": [],
   347              "memory_size": 256,
   348              "package_type": "Zip",
   349              "publish": false,
   350              "qualified_arn": "arn:aws:lambda:us-east-1:258751437250:function:amilist:$LATEST",
   351              "reserved_concurrent_executions": -1,
   352              "role": "arn:aws:iam::258751437250:role/amilist-lambda",
   353              "runtime": "go1.x",
   354              "s3_bucket": null,
   355              "s3_key": null,
   356              "s3_object_version": null,
   357              "signing_job_arn": "",
   358              "signing_profile_version_arn": "",
   359              "source_code_hash": "IIRV3yBO0geadCqCpHIkc/VuxmmLQu8QhoWrhT1qY2A=",
   360              "source_code_size": 24445390,
   361              "tags": {},
   362              "timeout": 60,
   363              "timeouts": null,
   364              "tracing_config": [
   365                {
   366                  "mode": "PassThrough"
   367                }
   368              ],
   369              "version": "$LATEST",
   370              "vpc_config": []
   371            },
   372            "sensitive_attributes": [],
   373            "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDB9fQ==",
   374            "dependencies": [
   375              "aws_iam_role.iam_for_lambda"
   376            ]
   377          }
   378        ]
   379      },
   380      {
   381        "mode": "managed",
   382        "type": "aws_lambda_permission",
   383        "name": "allow_cloudwatch_to_call_amilist",
   384        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   385        "instances": [
   386          {
   387            "schema_version": 0,
   388            "attributes": {
   389              "action": "lambda:InvokeFunction",
   390              "event_source_token": null,
   391              "function_name": "amilist",
   392              "id": "AllowExecutionFromCloudWatch",
   393              "principal": "events.amazonaws.com",
   394              "qualifier": "",
   395              "source_account": null,
   396              "source_arn": "arn:aws:events:us-east-1:258751437250:rule/every-hour",
   397              "statement_id": "AllowExecutionFromCloudWatch",
   398              "statement_id_prefix": null
   399            },
   400            "sensitive_attributes": [],
   401            "private": "bnVsbA==",
   402            "dependencies": [
   403              "aws_cloudwatch_event_rule.every_hour",
   404              "aws_iam_role.iam_for_lambda",
   405              "aws_lambda_function.amilist"
   406            ]
   407          }
   408        ]
   409      },
   410      {
   411        "mode": "managed",
   412        "type": "aws_s3_bucket",
   413        "name": "cluster-api-aws",
   414        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   415        "instances": [
   416          {
   417            "schema_version": 0,
   418            "attributes": {
   419              "acceleration_status": "",
   420              "acl": "public-read",
   421              "arn": "arn:aws:s3:::cluster-api-aws-amis.sigs.k8s.io",
   422              "bucket": "cluster-api-aws-amis.sigs.k8s.io",
   423              "bucket_domain_name": "cluster-api-aws-amis.sigs.k8s.io.s3.amazonaws.com",
   424              "bucket_prefix": null,
   425              "bucket_regional_domain_name": "cluster-api-aws-amis.sigs.k8s.io.s3.amazonaws.com",
   426              "cors_rule": [
   427                {
   428                  "allowed_headers": [
   429                    "*"
   430                  ],
   431                  "allowed_methods": [
   432                    "GET"
   433                  ],
   434                  "allowed_origins": [
   435                    "*"
   436                  ],
   437                  "expose_headers": [
   438                    "ETag"
   439                  ],
   440                  "max_age_seconds": 3000
   441                }
   442              ],
   443              "force_destroy": false,
   444              "grant": [],
   445              "hosted_zone_id": "Z3AQBSTGFYJSTF",
   446              "id": "cluster-api-aws-amis.sigs.k8s.io",
   447              "lifecycle_rule": [],
   448              "logging": [],
   449              "object_lock_configuration": [],
   450              "policy": null,
   451              "region": "us-east-1",
   452              "replication_configuration": [],
   453              "request_payer": "BucketOwner",
   454              "server_side_encryption_configuration": [],
   455              "tags": {},
   456              "versioning": [
   457                {
   458                  "enabled": false,
   459                  "mfa_delete": false
   460                }
   461              ],
   462              "website": [
   463                {
   464                  "error_document": "",
   465                  "index_document": "amis.json",
   466                  "redirect_all_requests_to": "",
   467                  "routing_rules": ""
   468                }
   469              ],
   470              "website_domain": "s3-website-us-east-1.amazonaws.com",
   471              "website_endpoint": "cluster-api-aws-amis.sigs.k8s.io.s3-website-us-east-1.amazonaws.com"
   472            },
   473            "sensitive_attributes": [],
   474            "private": "bnVsbA=="
   475          }
   476        ]
   477      },
   478      {
   479        "mode": "managed",
   480        "type": "aws_s3_bucket_policy",
   481        "name": "cluster-api",
   482        "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
   483        "instances": [
   484          {
   485            "schema_version": 0,
   486            "attributes": {
   487              "bucket": "cluster-api-aws-amis.sigs.k8s.io",
   488              "id": "cluster-api-aws-amis.sigs.k8s.io",
   489              "policy": "{\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}"
   490            },
   491            "sensitive_attributes": [],
   492            "private": "bnVsbA==",
   493            "dependencies": [
   494              "aws_s3_bucket.cluster-api-aws",
   495              "data.aws_iam_policy_document.s3_policy"
   496            ]
   497          }
   498        ]
   499      }
   500    ]
   501  }