issues
search
winglang
/
voting-app
MIT License
6
stars
4
forks
source link
dynamodb simulation sketch
#14
Closed
Chriscbr
closed
1 year ago
github-actions[bot]
commented
1 year ago
Terraform Plan
Show Plan
``` aws_s3_bucket.Code: Refreshing state... [id=code-c84a50b1-20230727202411678600000003] aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895: Refreshing state... [id=Entries-e91f54ab] data.aws_region.Region: Reading... aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRole_0FF833EF: Refreshing state... [id=terraform-20230803215115569800000002] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRole_CBB68D47: Refreshing state... [id=terraform-20230808003212924500000001] aws_s3_bucket.cloudWebsite_WebsiteBucket_EB03D355: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRole_5F3056C5: Refreshing state... [id=terraform-20230727204725916100000001] aws_cloudfront_origin_access_control.cloudWebsite_CloudfrontOac_C956968B: Refreshing state... [id=E1J2GO7P2VQ2EZ] aws_iam_role.InitializeTable_Function_IamRole_E3F0843D: Refreshing state... [id=terraform-20230727202411672600000001] data.aws_region.Region: Read complete after 0s [id=us-east-1] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9: Refreshing state... [id=terraform-20230808003212924500000001:terraform-20230808003225755300000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicyAttachment_92A90320: Refreshing state... [id=terraform-20230808003212924500000001-20230808003213158800000002] aws_iam_role_policy_attachment.InitializeTable_Function_IamRolePolicyAttachment_4435DE19: Refreshing state... [id=terraform-20230727202411672600000001-20230727202411887400000005] aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519: Refreshing state... [id=terraform-20230727202411672600000001:terraform-20230727202424567600000008] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E: Refreshing state... [id=terraform-20230727204725916100000001:terraform-20230727204739773400000005] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicyAttachment_E1980EB1: Refreshing state... [id=terraform-20230727204725916100000001-20230727204726450200000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicyAttachment_055C2EDA: Refreshing state... [id=terraform-20230803215115569800000002-20230803215115890800000004] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97: Refreshing state... [id=terraform-20230803215115569800000002:terraform-20230803215115813700000003] aws_s3_object.InitializeTable_Function_S3Object_F5933D3B: Refreshing state... [id=asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.0568173513a6a9c4febc4732ef1e7326.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6: Refreshing state... [id=asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.377d1403dc63687308b38743f7559cf5.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004: Refreshing state... [id=asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.00d9f0d583eabd9ae24d0f2a1e997347.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9: Refreshing state... [id=asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8dada3e3f59310e631b120afcd184d6f.zip] aws_s3_object.cloudWebsite_File--static--js--main18097b91jsmap_7BB52F34: Refreshing state... [id=/static/js/main.18097b91.js.map] aws_s3_object.cloudWebsite_File--asset-manifestjson_8187FE70: Refreshing state... [id=/asset-manifest.json] aws_s3_object.cloudWebsite_File--faviconico_A86052F9: Refreshing state... [id=/favicon.ico] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjsmap_F5D0643F: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js.map] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjs_40889769: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js] aws_cloudfront_distribution.cloudWebsite_Distribution_083B5AF9: Refreshing state... [id=E1QUV69RQ9ODON] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9css_ABAEC285: Refreshing state... [id=/static/css/main.bc8dc0a9.css] aws_s3_object.cloudWebsite_File--logo192png_6E513B20: Refreshing state... [id=/logo192.png] aws_s3_object.cloudWebsite_File--robotstxt_F93900E9: Refreshing state... [id=/robots.txt] aws_s3_object.cloudWebsite_File--static--js--main18097b91js_BE1C3BD1: Refreshing state... [id=/static/js/main.18097b91.js] aws_s3_object.cloudWebsite_File--manifestjson_5AC33197: Refreshing state... [id=/manifest.json] aws_s3_object.cloudWebsite_File--static--js--main18097b91jsLICENSEtxt_622B060C: Refreshing state... [id=/static/js/main.18097b91.js.LICENSE.txt] aws_s3_object.cloudWebsite_File--logo512png_E26C5AA3: Refreshing state... [id=/logo512.png] aws_s3_bucket_public_access_block.cloudWebsite_PublicAccessBlock_18A70311: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_bucket_website_configuration.cloudWebsite_BucketWebsiteConfiguration_920E8E41: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9cssmap_D475E55B: Refreshing state... [id=/static/css/main.bc8dc0a9.css.map] aws_s3_object.cloudWebsite_File--indexhtml_2A2AE13C: Refreshing state... [id=/index.html] aws_lambda_function.InitializeTable_Function_FD00736D: Refreshing state... [id=Function-c8e7055b] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6: Refreshing state... [id=VotingAppApi-OnRequest-52bc3c17-c89daf14] aws_s3_bucket_server_side_encryption_configuration.cloudWebsite_Encryption_6A8A4E29: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52: Refreshing state... [id=VotingAppApi-OnRequest-8d2e75ec-c8cf8e09] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289: Refreshing state... [id=VotingAppApi-OnRequest-41f14472-c87bddf9] data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Reading... data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Read complete after 0s [id=573591717] aws_s3_bucket_policy.cloudWebsite_DistributionS3BucketPolicy_32B029AE: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_api_gateway_rest_api.VotingAppApi_api_CB41EC98: Refreshing state... [id=dfh6uhtoa0] aws_lambda_permission.VotingAppApi_api_permission-GET-5969f3af_56B4A504: Refreshing state... [id=AllowExecutionFromAPIGateway-GET-5969f3af] aws_lambda_permission.VotingAppApi_api_permission-POST-53dc1f64_98751060: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-53dc1f64] aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894: Refreshing state... [id=q0wnc2] aws_lambda_permission.VotingAppApi_api_permission-POST-57590acc_3E83C8F6: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-57590acc] aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA: Refreshing state... [id=ags-dfh6uhtoa0-prod] aws_s3_object.cloudWebsite_File-configjson_591A81BA: Refreshing state... [id=config.json] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place - destroy -/+ destroy and then create replacement +/- create replacement and then destroy <= read (data resources) Terraform will perform the following actions: # data.aws_lambda_invocation.InitializeTable_Invocation_6E01246F will be read during apply # (depends on a resource or a module with changes pending) <= data "aws_lambda_invocation" "InitializeTable_Invocation_6E01246F" { + function_name = "Function-c8e7055b" + id = (known after apply) + input = jsonencode({}) + result = (known after apply) } # aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894 must be replaced +/- resource "aws_api_gateway_deployment" "VotingAppApi_api_deployment_B9647894" { ~ created_date = "2023-08-11T02:02:36Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-1:223316951128:dfh6uhtoa0/" -> (known after apply) ~ id = "q0wnc2" -> (known after apply) ~ invoke_url = "https://dfh6uhtoa0.execute-api.us-east-1.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "2af98f3563769ccd0147ff1b0e990c17b84e35ff" -> "46aa03136ee612742b574d86abba9e34d1e16df4" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA will be updated in-place ~ resource "aws_api_gateway_stage" "VotingAppApi_api_stage_9B2FA9EA" { ~ deployment_id = "q0wnc2" -> (known after apply) id = "ags-dfh6uhtoa0-prod" tags = {} # (9 unchanged attributes hidden) } # aws_dynamodb_table.VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD will be created + resource "aws_dynamodb_table" "VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD" { + arn = (known after apply) + billing_mode = "PAY_PER_REQUEST" + hash_key = "Name" + id = (known after apply) + name = "DynamoDBTableAws-4b65a10e" + read_capacity = (known after apply) + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags_all = (known after apply) + write_capacity = (known after apply) + attribute { + name = "Name" + type = "S" } } # aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 will be destroyed # (because aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 is not in configuration) - resource "aws_dynamodb_table" "VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895" { - arn = "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab" -> null - billing_mode = "PAY_PER_REQUEST" -> null - deletion_protection_enabled = false -> null - hash_key = "Name" -> null - id = "Entries-e91f54ab" -> null - name = "Entries-e91f54ab" -> null - read_capacity = 0 -> null - stream_enabled = false -> null - table_class = "STANDARD" -> null - tags = {} -> null - tags_all = {} -> null - write_capacity = 0 -> null - attribute { - name = "Name" -> null - type = "S" -> null } - point_in_time_recovery { - enabled = false -> null } - ttl { - enabled = false -> null } } # aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519 will be updated in-place ~ resource "aws_iam_role_policy" "InitializeTable_Function_IamRolePolicy_2AD89519" { id = "terraform-20230727202411672600000001:terraform-20230727202424567600000008" name = "terraform-20230727202424567600000008" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E" { id = "terraform-20230727204725916100000001:terraform-20230727204739773400000005" name = "terraform-20230727204739773400000005" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, - { - Action = [ - "dynamodb:GetItem", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, - { - Action = [ - "dynamodb:Scan", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9" { id = "terraform-20230808003212924500000001:terraform-20230808003225755300000003" name = "terraform-20230808003225755300000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97" { id = "terraform-20230803215115569800000002:terraform-20230803215115813700000003" name = "terraform-20230803215115813700000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_lambda_function.InitializeTable_Function_FD00736D will be updated in-place ~ resource "aws_lambda_function" "InitializeTable_Function_FD00736D" { id = "Function-c8e7055b" ~ last_modified = "2023-08-11T19:56:03.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:13" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:13/invocations" -> (known after apply) ~ s3_key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.0568173513a6a9c4febc4732ef1e7326.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.d4b740d886dc7a9e2840747a41e73a7b.zip" tags = {} ~ version = "13" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289" { id = "VotingAppApi-OnRequest-41f14472-c87bddf9" ~ last_modified = "2023-08-11T19:56:03.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:12" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:12/invocations" -> (known after apply) ~ s3_key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8dada3e3f59310e631b120afcd184d6f.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3fd0ddb4c391d03f74f789dcba8c7da4.zip" tags = {} ~ version = "12" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6" { id = "VotingAppApi-OnRequest-52bc3c17-c89daf14" ~ last_modified = "2023-08-11T19:56:03.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:9" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:9/invocations" -> (known after apply) ~ s3_key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.377d1403dc63687308b38743f7559cf5.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.3b743f75a0106a5fe8839716821c8925.zip" tags = {} ~ version = "9" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52" { id = "VotingAppApi-OnRequest-8d2e75ec-c8cf8e09" ~ last_modified = "2023-08-11T19:56:03.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:11" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:11/invocations" -> (known after apply) ~ s3_key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.00d9f0d583eabd9ae24d0f2a1e997347.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.1d1d7258dcd71676e57a8d7ee29b7716.zip" tags = {} ~ version = "11" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_s3_object.InitializeTable_Function_S3Object_F5933D3B must be replaced -/+ resource "aws_s3_object" "InitializeTable_Function_S3Object_F5933D3B" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "ece165a020059c69422cff4c27423035" -> (known after apply) ~ id = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.0568173513a6a9c4febc4732ef1e7326.zip" -> (known after apply) ~ key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.0568173513a6a9c4febc4732ef1e7326.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.d4b740d886dc7a9e2840747a41e73a7b.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/InitializeTable_Function_Asset_1A1B5BC3/0568173513A6A9C4FEBC4732EF1E7326/archive.zip" -> "assets/InitializeTable_Function_Asset_1A1B5BC3/D4B740D886DC7A9E2840747A41E73A7B/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "247988c355126beb0e335b66d5db5388" -> (known after apply) ~ id = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8dada3e3f59310e631b120afcd184d6f.zip" -> (known after apply) ~ key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8dada3e3f59310e631b120afcd184d6f.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3fd0ddb4c391d03f74f789dcba8c7da4.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/8DADA3E3F59310E631B120AFCD184D6F/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/3FD0DDB4C391D03F74F789DCBA8C7DA4/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "3f24c2dfa372943f2a98dfd37f25f737" -> (known after apply) ~ id = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.377d1403dc63687308b38743f7559cf5.zip" -> (known after apply) ~ key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.377d1403dc63687308b38743f7559cf5.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.3b743f75a0106a5fe8839716821c8925.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/377D1403DC63687308B38743F7559CF5/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/3B743F75A0106A5FE8839716821C8925/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "6a08c76e11998f7fa13875bda042d488" -> (known after apply) ~ id = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.00d9f0d583eabd9ae24d0f2a1e997347.zip" -> (known after apply) ~ key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.00d9f0d583eabd9ae24d0f2a1e997347.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.1d1d7258dcd71676e57a8d7ee29b7716.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/00D9F0D583EABD9AE24D0F2A1E997347/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/1D1D7258DCD71676E57A8D7EE29B7716/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } Plan: 6 to add, 9 to change, 6 to destroy. ```
github-actions[bot]
commented
1 year ago
Terraform Plan
Show Plan
``` aws_cloudfront_origin_access_control.cloudWebsite_CloudfrontOac_C956968B: Refreshing state... [id=E1J2GO7P2VQ2EZ] aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895: Refreshing state... [id=Entries-e91f54ab] data.aws_region.Region: Reading... aws_iam_role.InitializeTable_Function_IamRole_E3F0843D: Refreshing state... [id=terraform-20230727202411672600000001] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRole_CBB68D47: Refreshing state... [id=terraform-20230808003212924500000001] aws_s3_bucket.cloudWebsite_WebsiteBucket_EB03D355: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRole_5F3056C5: Refreshing state... [id=terraform-20230727204725916100000001] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRole_0FF833EF: Refreshing state... [id=terraform-20230803215115569800000002] aws_s3_bucket.Code: Refreshing state... [id=code-c84a50b1-20230727202411678600000003] data.aws_region.Region: Read complete after 0s [id=us-east-1] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicyAttachment_E1980EB1: Refreshing state... [id=terraform-20230727204725916100000001-20230727204726450200000003] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E: Refreshing state... [id=terraform-20230727204725916100000001:terraform-20230727204739773400000005] aws_iam_role_policy_attachment.InitializeTable_Function_IamRolePolicyAttachment_4435DE19: Refreshing state... [id=terraform-20230727202411672600000001-20230727202411887400000005] aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519: Refreshing state... [id=terraform-20230727202411672600000001:terraform-20230727202424567600000008] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicyAttachment_055C2EDA: Refreshing state... [id=terraform-20230803215115569800000002-20230803215115890800000004] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97: Refreshing state... [id=terraform-20230803215115569800000002:terraform-20230803215115813700000003] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9: Refreshing state... [id=terraform-20230808003212924500000001:terraform-20230808003225755300000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicyAttachment_92A90320: Refreshing state... [id=terraform-20230808003212924500000001-20230808003213158800000002] aws_s3_object.InitializeTable_Function_S3Object_F5933D3B: Refreshing state... [id=asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6: Refreshing state... [id=asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9: Refreshing state... [id=asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004: Refreshing state... [id=asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjsmap_F5D0643F: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js.map] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjs_40889769: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9cssmap_D475E55B: Refreshing state... [id=/static/css/main.bc8dc0a9.css.map] aws_s3_object.cloudWebsite_File--asset-manifestjson_8187FE70: Refreshing state... [id=/asset-manifest.json] aws_s3_bucket_website_configuration.cloudWebsite_BucketWebsiteConfiguration_920E8E41: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_bucket_server_side_encryption_configuration.cloudWebsite_Encryption_6A8A4E29: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_bucket_public_access_block.cloudWebsite_PublicAccessBlock_18A70311: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80jsLICENSEtxt_E95A10E1: Refreshing state... [id=/static/js/main.f35fcf80.js.LICENSE.txt] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80jsmap_8EB0B4F9: Refreshing state... [id=/static/js/main.f35fcf80.js.map] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80js_5A79BA2F: Refreshing state... [id=/static/js/main.f35fcf80.js] aws_cloudfront_distribution.cloudWebsite_Distribution_083B5AF9: Refreshing state... [id=E1QUV69RQ9ODON] aws_s3_object.cloudWebsite_File--logo512png_E26C5AA3: Refreshing state... [id=/logo512.png] aws_s3_object.cloudWebsite_File--faviconico_A86052F9: Refreshing state... [id=/favicon.ico] aws_s3_object.cloudWebsite_File--logo192png_6E513B20: Refreshing state... [id=/logo192.png] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9css_ABAEC285: Refreshing state... [id=/static/css/main.bc8dc0a9.css] aws_s3_object.cloudWebsite_File--indexhtml_2A2AE13C: Refreshing state... [id=/index.html] aws_s3_object.cloudWebsite_File--robotstxt_F93900E9: Refreshing state... [id=/robots.txt] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6: Refreshing state... [id=VotingAppApi-OnRequest-52bc3c17-c89daf14] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52: Refreshing state... [id=VotingAppApi-OnRequest-8d2e75ec-c8cf8e09] aws_s3_object.cloudWebsite_File--manifestjson_5AC33197: Refreshing state... [id=/manifest.json] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289: Refreshing state... [id=VotingAppApi-OnRequest-41f14472-c87bddf9] aws_lambda_function.InitializeTable_Function_FD00736D: Refreshing state... [id=Function-c8e7055b] data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Reading... data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Read complete after 0s [id=573591717] aws_s3_bucket_policy.cloudWebsite_DistributionS3BucketPolicy_32B029AE: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_api_gateway_rest_api.VotingAppApi_api_CB41EC98: Refreshing state... [id=dfh6uhtoa0] aws_lambda_permission.VotingAppApi_api_permission-POST-57590acc_3E83C8F6: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-57590acc] aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894: Refreshing state... [id=q0wnc2] aws_lambda_permission.VotingAppApi_api_permission-POST-53dc1f64_98751060: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-53dc1f64] aws_lambda_permission.VotingAppApi_api_permission-GET-5969f3af_56B4A504: Refreshing state... [id=AllowExecutionFromAPIGateway-GET-5969f3af] aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA: Refreshing state... [id=ags-dfh6uhtoa0-prod] aws_s3_object.cloudWebsite_File-configjson_591A81BA: Refreshing state... [id=config.json] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place - destroy -/+ destroy and then create replacement +/- create replacement and then destroy <= read (data resources) Terraform will perform the following actions: # data.aws_lambda_invocation.InitializeTable_Invocation_6E01246F will be read during apply # (depends on a resource or a module with changes pending) <= data "aws_lambda_invocation" "InitializeTable_Invocation_6E01246F" { + function_name = "Function-c8e7055b" + id = (known after apply) + input = jsonencode({}) + result = (known after apply) } # aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894 must be replaced +/- resource "aws_api_gateway_deployment" "VotingAppApi_api_deployment_B9647894" { ~ created_date = "2023-08-11T02:02:36Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-1:223316951128:dfh6uhtoa0/" -> (known after apply) ~ id = "q0wnc2" -> (known after apply) ~ invoke_url = "https://dfh6uhtoa0.execute-api.us-east-1.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "2af98f3563769ccd0147ff1b0e990c17b84e35ff" -> "46aa03136ee612742b574d86abba9e34d1e16df4" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA will be updated in-place ~ resource "aws_api_gateway_stage" "VotingAppApi_api_stage_9B2FA9EA" { ~ deployment_id = "q0wnc2" -> (known after apply) id = "ags-dfh6uhtoa0-prod" tags = {} # (9 unchanged attributes hidden) } # aws_dynamodb_table.VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD will be created + resource "aws_dynamodb_table" "VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD" { + arn = (known after apply) + billing_mode = "PAY_PER_REQUEST" + hash_key = "Name" + id = (known after apply) + name = "DynamoDBTableAws-4b65a10e" + read_capacity = (known after apply) + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags_all = (known after apply) + write_capacity = (known after apply) + attribute { + name = "Name" + type = "S" } } # aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 will be destroyed # (because aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 is not in configuration) - resource "aws_dynamodb_table" "VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895" { - arn = "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab" -> null - billing_mode = "PAY_PER_REQUEST" -> null - deletion_protection_enabled = false -> null - hash_key = "Name" -> null - id = "Entries-e91f54ab" -> null - name = "Entries-e91f54ab" -> null - read_capacity = 0 -> null - stream_enabled = false -> null - table_class = "STANDARD" -> null - tags = {} -> null - tags_all = {} -> null - write_capacity = 0 -> null - attribute { - name = "Name" -> null - type = "S" -> null } - point_in_time_recovery { - enabled = false -> null } - ttl { - enabled = false -> null } } # aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519 will be updated in-place ~ resource "aws_iam_role_policy" "InitializeTable_Function_IamRolePolicy_2AD89519" { id = "terraform-20230727202411672600000001:terraform-20230727202424567600000008" name = "terraform-20230727202424567600000008" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E" { id = "terraform-20230727204725916100000001:terraform-20230727204739773400000005" name = "terraform-20230727204739773400000005" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, - { - Action = [ - "dynamodb:GetItem", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, - { - Action = [ - "dynamodb:Scan", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9" { id = "terraform-20230808003212924500000001:terraform-20230808003225755300000003" name = "terraform-20230808003225755300000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97" { id = "terraform-20230803215115569800000002:terraform-20230803215115813700000003" name = "terraform-20230803215115813700000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_lambda_function.InitializeTable_Function_FD00736D will be updated in-place ~ resource "aws_lambda_function" "InitializeTable_Function_FD00736D" { id = "Function-c8e7055b" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:15" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:15/invocations" -> (known after apply) ~ s3_key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.8689f7f77df72fd0dc96c5bf44945c14.zip" tags = {} ~ version = "15" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289" { id = "VotingAppApi-OnRequest-41f14472-c87bddf9" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:14" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:14/invocations" -> (known after apply) ~ s3_key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8c4de389fe82cd32ceb0b38bcdf33058.zip" tags = {} ~ version = "14" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6" { id = "VotingAppApi-OnRequest-52bc3c17-c89daf14" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:11" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:11/invocations" -> (known after apply) ~ s3_key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.669c95f4603a5e65f1f079ea6fc59243.zip" tags = {} ~ version = "11" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52" { id = "VotingAppApi-OnRequest-8d2e75ec-c8cf8e09" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:13" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:13/invocations" -> (known after apply) ~ s3_key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.c2c07a074272094232a55f8cd77ef3ba.zip" tags = {} ~ version = "13" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_s3_object.InitializeTable_Function_S3Object_F5933D3B must be replaced -/+ resource "aws_s3_object" "InitializeTable_Function_S3Object_F5933D3B" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "8e03c3b1a18b9bd6197a67063c76e24b" -> (known after apply) ~ id = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> (known after apply) ~ key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.8689f7f77df72fd0dc96c5bf44945c14.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/InitializeTable_Function_Asset_1A1B5BC3/00605C38368835E7BF3DBA2DC0A05054/archive.zip" -> "assets/InitializeTable_Function_Asset_1A1B5BC3/8689F7F77DF72FD0DC96C5BF44945C14/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "6fe40ec27691961f6f91e25b417e456b" -> (known after apply) ~ id = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> (known after apply) ~ key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8c4de389fe82cd32ceb0b38bcdf33058.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/3B7FC1B59D8BB2A3403ABFE2446965A8/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/8C4DE389FE82CD32CEB0B38BCDF33058/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "a86bb7a9cc51caba4547d0cca939e346" -> (known after apply) ~ id = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> (known after apply) ~ key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.669c95f4603a5e65f1f079ea6fc59243.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/9D4CEC0A859224E0FF2BD300D5E81EAD/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/669C95F4603A5E65F1F079EA6FC59243/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "b18d4a2310dc079735738f74077d6899" -> (known after apply) ~ id = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> (known after apply) ~ key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.c2c07a074272094232a55f8cd77ef3ba.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/6D4756FAFD355D77FBEDFC9CB2D6BF87/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/C2C07A074272094232A55F8CD77EF3BA/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } Plan: 6 to add, 9 to change, 6 to destroy. ```
github-actions[bot]
commented
1 year ago
Terraform Plan
Show Plan
``` aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRole_5F3056C5: Refreshing state... [id=terraform-20230727204725916100000001] aws_s3_bucket.cloudWebsite_WebsiteBucket_EB03D355: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_bucket.Code: Refreshing state... [id=code-c84a50b1-20230727202411678600000003] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRole_CBB68D47: Refreshing state... [id=terraform-20230808003212924500000001] aws_iam_role.InitializeTable_Function_IamRole_E3F0843D: Refreshing state... [id=terraform-20230727202411672600000001] aws_cloudfront_origin_access_control.cloudWebsite_CloudfrontOac_C956968B: Refreshing state... [id=E1J2GO7P2VQ2EZ] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRole_0FF833EF: Refreshing state... [id=terraform-20230803215115569800000002] data.aws_region.Region: Reading... aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895: Refreshing state... [id=Entries-e91f54ab] data.aws_region.Region: Read complete after 0s [id=us-east-1] aws_iam_role_policy_attachment.InitializeTable_Function_IamRolePolicyAttachment_4435DE19: Refreshing state... [id=terraform-20230727202411672600000001-20230727202411887400000005] aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519: Refreshing state... [id=terraform-20230727202411672600000001:terraform-20230727202424567600000008] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97: Refreshing state... [id=terraform-20230803215115569800000002:terraform-20230803215115813700000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicyAttachment_055C2EDA: Refreshing state... [id=terraform-20230803215115569800000002-20230803215115890800000004] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E: Refreshing state... [id=terraform-20230727204725916100000001:terraform-20230727204739773400000005] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicyAttachment_E1980EB1: Refreshing state... [id=terraform-20230727204725916100000001-20230727204726450200000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicyAttachment_92A90320: Refreshing state... [id=terraform-20230808003212924500000001-20230808003213158800000002] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9: Refreshing state... [id=terraform-20230808003212924500000001:terraform-20230808003225755300000003] aws_s3_object.InitializeTable_Function_S3Object_F5933D3B: Refreshing state... [id=asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9: Refreshing state... [id=asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6: Refreshing state... [id=asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004: Refreshing state... [id=asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6: Refreshing state... [id=VotingAppApi-OnRequest-52bc3c17-c89daf14] aws_lambda_function.InitializeTable_Function_FD00736D: Refreshing state... [id=Function-c8e7055b] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289: Refreshing state... [id=VotingAppApi-OnRequest-41f14472-c87bddf9] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80jsmap_8EB0B4F9: Refreshing state... [id=/static/js/main.f35fcf80.js.map] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9css_ABAEC285: Refreshing state... [id=/static/css/main.bc8dc0a9.css] aws_s3_bucket_public_access_block.cloudWebsite_PublicAccessBlock_18A70311: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_cloudfront_distribution.cloudWebsite_Distribution_083B5AF9: Refreshing state... [id=E1QUV69RQ9ODON] aws_s3_bucket_website_configuration.cloudWebsite_BucketWebsiteConfiguration_920E8E41: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80jsLICENSEtxt_E95A10E1: Refreshing state... [id=/static/js/main.f35fcf80.js.LICENSE.txt] aws_s3_object.cloudWebsite_File--indexhtml_2A2AE13C: Refreshing state... [id=/index.html] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9cssmap_D475E55B: Refreshing state... [id=/static/css/main.bc8dc0a9.css.map] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjsmap_F5D0643F: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js.map] aws_s3_object.cloudWebsite_File--logo192png_6E513B20: Refreshing state... [id=/logo192.png] aws_s3_object.cloudWebsite_File--faviconico_A86052F9: Refreshing state... [id=/favicon.ico] aws_s3_object.cloudWebsite_File--logo512png_E26C5AA3: Refreshing state... [id=/logo512.png] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80js_5A79BA2F: Refreshing state... [id=/static/js/main.f35fcf80.js] aws_s3_bucket_server_side_encryption_configuration.cloudWebsite_Encryption_6A8A4E29: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--asset-manifestjson_8187FE70: Refreshing state... [id=/asset-manifest.json] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjs_40889769: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js] aws_s3_object.cloudWebsite_File--manifestjson_5AC33197: Refreshing state... [id=/manifest.json] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52: Refreshing state... [id=VotingAppApi-OnRequest-8d2e75ec-c8cf8e09] aws_s3_object.cloudWebsite_File--robotstxt_F93900E9: Refreshing state... [id=/robots.txt] data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Reading... data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Read complete after 0s [id=573591717] aws_s3_bucket_policy.cloudWebsite_DistributionS3BucketPolicy_32B029AE: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_api_gateway_rest_api.VotingAppApi_api_CB41EC98: Refreshing state... [id=dfh6uhtoa0] aws_lambda_permission.VotingAppApi_api_permission-GET-5969f3af_56B4A504: Refreshing state... [id=AllowExecutionFromAPIGateway-GET-5969f3af] aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894: Refreshing state... [id=q0wnc2] aws_lambda_permission.VotingAppApi_api_permission-POST-57590acc_3E83C8F6: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-57590acc] aws_lambda_permission.VotingAppApi_api_permission-POST-53dc1f64_98751060: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-53dc1f64] aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA: Refreshing state... [id=ags-dfh6uhtoa0-prod] aws_s3_object.cloudWebsite_File-configjson_591A81BA: Refreshing state... [id=config.json] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place - destroy -/+ destroy and then create replacement +/- create replacement and then destroy <= read (data resources) Terraform will perform the following actions: # data.aws_lambda_invocation.InitializeTable_Invocation_6E01246F will be read during apply # (depends on a resource or a module with changes pending) <= data "aws_lambda_invocation" "InitializeTable_Invocation_6E01246F" { + function_name = "Function-c8e7055b" + id = (known after apply) + input = jsonencode({}) + result = (known after apply) } # aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894 must be replaced +/- resource "aws_api_gateway_deployment" "VotingAppApi_api_deployment_B9647894" { ~ created_date = "2023-08-11T02:02:36Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-1:223316951128:dfh6uhtoa0/" -> (known after apply) ~ id = "q0wnc2" -> (known after apply) ~ invoke_url = "https://dfh6uhtoa0.execute-api.us-east-1.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "2af98f3563769ccd0147ff1b0e990c17b84e35ff" -> "46aa03136ee612742b574d86abba9e34d1e16df4" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA will be updated in-place ~ resource "aws_api_gateway_stage" "VotingAppApi_api_stage_9B2FA9EA" { ~ deployment_id = "q0wnc2" -> (known after apply) id = "ags-dfh6uhtoa0-prod" tags = {} # (9 unchanged attributes hidden) } # aws_dynamodb_table.VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD will be created + resource "aws_dynamodb_table" "VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD" { + arn = (known after apply) + billing_mode = "PAY_PER_REQUEST" + hash_key = "Name" + id = (known after apply) + name = "DynamoDBTableAws-4b65a10e" + read_capacity = (known after apply) + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags_all = (known after apply) + write_capacity = (known after apply) + attribute { + name = "Name" + type = "S" } } # aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 will be destroyed # (because aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 is not in configuration) - resource "aws_dynamodb_table" "VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895" { - arn = "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab" -> null - billing_mode = "PAY_PER_REQUEST" -> null - deletion_protection_enabled = false -> null - hash_key = "Name" -> null - id = "Entries-e91f54ab" -> null - name = "Entries-e91f54ab" -> null - read_capacity = 0 -> null - stream_enabled = false -> null - table_class = "STANDARD" -> null - tags = {} -> null - tags_all = {} -> null - write_capacity = 0 -> null - attribute { - name = "Name" -> null - type = "S" -> null } - point_in_time_recovery { - enabled = false -> null } - ttl { - enabled = false -> null } } # aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519 will be updated in-place ~ resource "aws_iam_role_policy" "InitializeTable_Function_IamRolePolicy_2AD89519" { id = "terraform-20230727202411672600000001:terraform-20230727202424567600000008" name = "terraform-20230727202424567600000008" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E" { id = "terraform-20230727204725916100000001:terraform-20230727204739773400000005" name = "terraform-20230727204739773400000005" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, - { - Action = [ - "dynamodb:GetItem", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, - { - Action = [ - "dynamodb:Scan", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9" { id = "terraform-20230808003212924500000001:terraform-20230808003225755300000003" name = "terraform-20230808003225755300000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97" { id = "terraform-20230803215115569800000002:terraform-20230803215115813700000003" name = "terraform-20230803215115813700000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_lambda_function.InitializeTable_Function_FD00736D will be updated in-place ~ resource "aws_lambda_function" "InitializeTable_Function_FD00736D" { id = "Function-c8e7055b" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:15" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:15/invocations" -> (known after apply) ~ s3_key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.a8d8f6277cc2ebcd593e1b6374d522ef.zip" tags = {} ~ version = "15" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289" { id = "VotingAppApi-OnRequest-41f14472-c87bddf9" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:14" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:14/invocations" -> (known after apply) ~ s3_key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8ed32855c75e87a1b9fb9ce06113b370.zip" tags = {} ~ version = "14" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6" { id = "VotingAppApi-OnRequest-52bc3c17-c89daf14" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:11" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:11/invocations" -> (known after apply) ~ s3_key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.fbd1b4bb0d40f6bbfe119294a281ca30.zip" tags = {} ~ version = "11" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52" { id = "VotingAppApi-OnRequest-8d2e75ec-c8cf8e09" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:13" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:13/invocations" -> (known after apply) ~ s3_key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.172098c76d6f7e50966fb73958277055.zip" tags = {} ~ version = "13" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_s3_object.InitializeTable_Function_S3Object_F5933D3B must be replaced -/+ resource "aws_s3_object" "InitializeTable_Function_S3Object_F5933D3B" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "8e03c3b1a18b9bd6197a67063c76e24b" -> (known after apply) ~ id = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> (known after apply) ~ key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.a8d8f6277cc2ebcd593e1b6374d522ef.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/InitializeTable_Function_Asset_1A1B5BC3/00605C38368835E7BF3DBA2DC0A05054/archive.zip" -> "assets/InitializeTable_Function_Asset_1A1B5BC3/A8D8F6277CC2EBCD593E1B6374D522EF/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "6fe40ec27691961f6f91e25b417e456b" -> (known after apply) ~ id = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> (known after apply) ~ key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8ed32855c75e87a1b9fb9ce06113b370.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/3B7FC1B59D8BB2A3403ABFE2446965A8/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/8ED32855C75E87A1B9FB9CE06113B370/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "a86bb7a9cc51caba4547d0cca939e346" -> (known after apply) ~ id = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> (known after apply) ~ key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.fbd1b4bb0d40f6bbfe119294a281ca30.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/9D4CEC0A859224E0FF2BD300D5E81EAD/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/FBD1B4BB0D40F6BBFE119294A281CA30/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "b18d4a2310dc079735738f74077d6899" -> (known after apply) ~ id = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> (known after apply) ~ key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.172098c76d6f7e50966fb73958277055.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/6D4756FAFD355D77FBEDFC9CB2D6BF87/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/172098C76D6F7E50966FB73958277055/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } Plan: 6 to add, 9 to change, 6 to destroy. ```
github-actions[bot]
commented
1 year ago
Terraform Plan
Show Plan
``` aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895: Refreshing state... [id=Entries-e91f54ab] aws_iam_role.InitializeTable_Function_IamRole_E3F0843D: Refreshing state... [id=terraform-20230727202411672600000001] aws_s3_bucket.Code: Refreshing state... [id=code-c84a50b1-20230727202411678600000003] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRole_CBB68D47: Refreshing state... [id=terraform-20230808003212924500000001] data.aws_region.Region: Reading... aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRole_0FF833EF: Refreshing state... [id=terraform-20230803215115569800000002] aws_s3_bucket.cloudWebsite_WebsiteBucket_EB03D355: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRole_5F3056C5: Refreshing state... [id=terraform-20230727204725916100000001] aws_cloudfront_origin_access_control.cloudWebsite_CloudfrontOac_C956968B: Refreshing state... [id=E1J2GO7P2VQ2EZ] data.aws_region.Region: Read complete after 0s [id=us-east-1] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9: Refreshing state... [id=terraform-20230808003212924500000001:terraform-20230808003225755300000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicyAttachment_92A90320: Refreshing state... [id=terraform-20230808003212924500000001-20230808003213158800000002] aws_iam_role_policy_attachment.InitializeTable_Function_IamRolePolicyAttachment_4435DE19: Refreshing state... [id=terraform-20230727202411672600000001-20230727202411887400000005] aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519: Refreshing state... [id=terraform-20230727202411672600000001:terraform-20230727202424567600000008] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E: Refreshing state... [id=terraform-20230727204725916100000001:terraform-20230727204739773400000005] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicyAttachment_E1980EB1: Refreshing state... [id=terraform-20230727204725916100000001-20230727204726450200000003] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97: Refreshing state... [id=terraform-20230803215115569800000002:terraform-20230803215115813700000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicyAttachment_055C2EDA: Refreshing state... [id=terraform-20230803215115569800000002-20230803215115890800000004] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6: Refreshing state... [id=asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004: Refreshing state... [id=asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9: Refreshing state... [id=asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip] aws_s3_object.InitializeTable_Function_S3Object_F5933D3B: Refreshing state... [id=asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6: Refreshing state... [id=VotingAppApi-OnRequest-52bc3c17-c89daf14] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289: Refreshing state... [id=VotingAppApi-OnRequest-41f14472-c87bddf9] aws_lambda_function.InitializeTable_Function_FD00736D: Refreshing state... [id=Function-c8e7055b] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52: Refreshing state... [id=VotingAppApi-OnRequest-8d2e75ec-c8cf8e09] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjsmap_F5D0643F: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js.map] aws_s3_object.cloudWebsite_File--logo192png_6E513B20: Refreshing state... [id=/logo192.png] aws_s3_object.cloudWebsite_File--asset-manifestjson_8187FE70: Refreshing state... [id=/asset-manifest.json] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80jsLICENSEtxt_E95A10E1: Refreshing state... [id=/static/js/main.f35fcf80.js.LICENSE.txt] aws_s3_object.cloudWebsite_File--manifestjson_5AC33197: Refreshing state... [id=/manifest.json] aws_cloudfront_distribution.cloudWebsite_Distribution_083B5AF9: Refreshing state... [id=E1QUV69RQ9ODON] aws_s3_bucket_website_configuration.cloudWebsite_BucketWebsiteConfiguration_920E8E41: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80js_5A79BA2F: Refreshing state... [id=/static/js/main.f35fcf80.js] aws_s3_bucket_server_side_encryption_configuration.cloudWebsite_Encryption_6A8A4E29: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjs_40889769: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9cssmap_D475E55B: Refreshing state... [id=/static/css/main.bc8dc0a9.css.map] aws_s3_bucket_public_access_block.cloudWebsite_PublicAccessBlock_18A70311: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--indexhtml_2A2AE13C: Refreshing state... [id=/index.html] aws_s3_object.cloudWebsite_File--logo512png_E26C5AA3: Refreshing state... [id=/logo512.png] aws_s3_object.cloudWebsite_File--robotstxt_F93900E9: Refreshing state... [id=/robots.txt] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9css_ABAEC285: Refreshing state... [id=/static/css/main.bc8dc0a9.css] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80jsmap_8EB0B4F9: Refreshing state... [id=/static/js/main.f35fcf80.js.map] aws_s3_object.cloudWebsite_File--faviconico_A86052F9: Refreshing state... [id=/favicon.ico] data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Reading... data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Read complete after 0s [id=573591717] aws_s3_bucket_policy.cloudWebsite_DistributionS3BucketPolicy_32B029AE: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_api_gateway_rest_api.VotingAppApi_api_CB41EC98: Refreshing state... [id=dfh6uhtoa0] aws_lambda_permission.VotingAppApi_api_permission-GET-5969f3af_56B4A504: Refreshing state... [id=AllowExecutionFromAPIGateway-GET-5969f3af] aws_lambda_permission.VotingAppApi_api_permission-POST-57590acc_3E83C8F6: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-57590acc] aws_lambda_permission.VotingAppApi_api_permission-POST-53dc1f64_98751060: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-53dc1f64] aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894: Refreshing state... [id=q0wnc2] aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA: Refreshing state... [id=ags-dfh6uhtoa0-prod] aws_s3_object.cloudWebsite_File-configjson_591A81BA: Refreshing state... [id=config.json] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place - destroy -/+ destroy and then create replacement +/- create replacement and then destroy <= read (data resources) Terraform will perform the following actions: # data.aws_lambda_invocation.InitializeTable_Invocation_6E01246F will be read during apply # (depends on a resource or a module with changes pending) <= data "aws_lambda_invocation" "InitializeTable_Invocation_6E01246F" { + function_name = "Function-c8e7055b" + id = (known after apply) + input = jsonencode({}) + result = (known after apply) } # aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894 must be replaced +/- resource "aws_api_gateway_deployment" "VotingAppApi_api_deployment_B9647894" { ~ created_date = "2023-08-11T02:02:36Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-1:223316951128:dfh6uhtoa0/" -> (known after apply) ~ id = "q0wnc2" -> (known after apply) ~ invoke_url = "https://dfh6uhtoa0.execute-api.us-east-1.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "2af98f3563769ccd0147ff1b0e990c17b84e35ff" -> "46aa03136ee612742b574d86abba9e34d1e16df4" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA will be updated in-place ~ resource "aws_api_gateway_stage" "VotingAppApi_api_stage_9B2FA9EA" { ~ deployment_id = "q0wnc2" -> (known after apply) id = "ags-dfh6uhtoa0-prod" tags = {} # (9 unchanged attributes hidden) } # aws_dynamodb_table.VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD will be created + resource "aws_dynamodb_table" "VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD" { + arn = (known after apply) + billing_mode = "PAY_PER_REQUEST" + hash_key = "Name" + id = (known after apply) + name = "DynamoDBTableAws-4b65a10e" + read_capacity = (known after apply) + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags_all = (known after apply) + write_capacity = (known after apply) + attribute { + name = "Name" + type = "S" } } # aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 will be destroyed # (because aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 is not in configuration) - resource "aws_dynamodb_table" "VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895" { - arn = "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab" -> null - billing_mode = "PAY_PER_REQUEST" -> null - deletion_protection_enabled = false -> null - hash_key = "Name" -> null - id = "Entries-e91f54ab" -> null - name = "Entries-e91f54ab" -> null - read_capacity = 0 -> null - stream_enabled = false -> null - table_class = "STANDARD" -> null - tags = {} -> null - tags_all = {} -> null - write_capacity = 0 -> null - attribute { - name = "Name" -> null - type = "S" -> null } - point_in_time_recovery { - enabled = false -> null } - ttl { - enabled = false -> null } } # aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519 will be updated in-place ~ resource "aws_iam_role_policy" "InitializeTable_Function_IamRolePolicy_2AD89519" { id = "terraform-20230727202411672600000001:terraform-20230727202424567600000008" name = "terraform-20230727202424567600000008" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E" { id = "terraform-20230727204725916100000001:terraform-20230727204739773400000005" name = "terraform-20230727204739773400000005" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, - { - Action = [ - "dynamodb:GetItem", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, - { - Action = [ - "dynamodb:Scan", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9" { id = "terraform-20230808003212924500000001:terraform-20230808003225755300000003" name = "terraform-20230808003225755300000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97" { id = "terraform-20230803215115569800000002:terraform-20230803215115813700000003" name = "terraform-20230803215115813700000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_lambda_function.InitializeTable_Function_FD00736D will be updated in-place ~ resource "aws_lambda_function" "InitializeTable_Function_FD00736D" { id = "Function-c8e7055b" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:15" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:15/invocations" -> (known after apply) ~ s3_key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.8fe894ee3caa5cf85d146978dc8b67da.zip" tags = {} ~ version = "15" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289" { id = "VotingAppApi-OnRequest-41f14472-c87bddf9" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:14" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:14/invocations" -> (known after apply) ~ s3_key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.001db478ae15c7c637f48a003b34f024.zip" tags = {} ~ version = "14" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6" { id = "VotingAppApi-OnRequest-52bc3c17-c89daf14" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:11" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:11/invocations" -> (known after apply) ~ s3_key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d5237b36b03b60c5bcfe02c761c4410.zip" tags = {} ~ version = "11" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52" { id = "VotingAppApi-OnRequest-8d2e75ec-c8cf8e09" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:13" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:13/invocations" -> (known after apply) ~ s3_key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.3ef577d0d89e831639d1893c6923d258.zip" tags = {} ~ version = "13" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_s3_object.InitializeTable_Function_S3Object_F5933D3B must be replaced -/+ resource "aws_s3_object" "InitializeTable_Function_S3Object_F5933D3B" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "8e03c3b1a18b9bd6197a67063c76e24b" -> (known after apply) ~ id = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> (known after apply) ~ key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.8fe894ee3caa5cf85d146978dc8b67da.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/InitializeTable_Function_Asset_1A1B5BC3/00605C38368835E7BF3DBA2DC0A05054/archive.zip" -> "assets/InitializeTable_Function_Asset_1A1B5BC3/8FE894EE3CAA5CF85D146978DC8B67DA/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "6fe40ec27691961f6f91e25b417e456b" -> (known after apply) ~ id = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> (known after apply) ~ key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.001db478ae15c7c637f48a003b34f024.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/3B7FC1B59D8BB2A3403ABFE2446965A8/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/001DB478AE15C7C637F48A003B34F024/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "a86bb7a9cc51caba4547d0cca939e346" -> (known after apply) ~ id = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> (known after apply) ~ key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d5237b36b03b60c5bcfe02c761c4410.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/9D4CEC0A859224E0FF2BD300D5E81EAD/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/9D5237B36B03B60C5BCFE02C761C4410/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "b18d4a2310dc079735738f74077d6899" -> (known after apply) ~ id = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> (known after apply) ~ key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.3ef577d0d89e831639d1893c6923d258.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/6D4756FAFD355D77FBEDFC9CB2D6BF87/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/3EF577D0D89E831639D1893C6923D258/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } Plan: 6 to add, 9 to change, 6 to destroy. ```
github-actions[bot]
commented
1 year ago
Terraform Plan
Show Plan
``` aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895: Refreshing state... [id=Entries-e91f54ab] aws_cloudfront_origin_access_control.cloudWebsite_CloudfrontOac_C956968B: Refreshing state... [id=E1J2GO7P2VQ2EZ] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRole_CBB68D47: Refreshing state... [id=terraform-20230808003212924500000001] data.aws_region.Region: Reading... aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRole_0FF833EF: Refreshing state... [id=terraform-20230803215115569800000002] aws_iam_role.InitializeTable_Function_IamRole_E3F0843D: Refreshing state... [id=terraform-20230727202411672600000001] aws_s3_bucket.Code: Refreshing state... [id=code-c84a50b1-20230727202411678600000003] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRole_5F3056C5: Refreshing state... [id=terraform-20230727204725916100000001] aws_s3_bucket.cloudWebsite_WebsiteBucket_EB03D355: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] data.aws_region.Region: Read complete after 0s [id=us-east-1] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E: Refreshing state... [id=terraform-20230727204725916100000001:terraform-20230727204739773400000005] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicyAttachment_E1980EB1: Refreshing state... [id=terraform-20230727204725916100000001-20230727204726450200000003] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97: Refreshing state... [id=terraform-20230803215115569800000002:terraform-20230803215115813700000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicyAttachment_055C2EDA: Refreshing state... [id=terraform-20230803215115569800000002-20230803215115890800000004] aws_iam_role_policy_attachment.InitializeTable_Function_IamRolePolicyAttachment_4435DE19: Refreshing state... [id=terraform-20230727202411672600000001-20230727202411887400000005] aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519: Refreshing state... [id=terraform-20230727202411672600000001:terraform-20230727202424567600000008] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicyAttachment_92A90320: Refreshing state... [id=terraform-20230808003212924500000001-20230808003213158800000002] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9: Refreshing state... [id=terraform-20230808003212924500000001:terraform-20230808003225755300000003] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6: Refreshing state... [id=asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004: Refreshing state... [id=asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9: Refreshing state... [id=asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip] aws_s3_object.InitializeTable_Function_S3Object_F5933D3B: Refreshing state... [id=asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9css_ABAEC285: Refreshing state... [id=/static/css/main.bc8dc0a9.css] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80jsLICENSEtxt_E95A10E1: Refreshing state... [id=/static/js/main.f35fcf80.js.LICENSE.txt] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjsmap_F5D0643F: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js.map] aws_s3_object.cloudWebsite_File--faviconico_A86052F9: Refreshing state... [id=/favicon.ico] aws_s3_object.cloudWebsite_File--robotstxt_F93900E9: Refreshing state... [id=/robots.txt] aws_cloudfront_distribution.cloudWebsite_Distribution_083B5AF9: Refreshing state... [id=E1QUV69RQ9ODON] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80js_5A79BA2F: Refreshing state... [id=/static/js/main.f35fcf80.js] aws_s3_object.cloudWebsite_File--manifestjson_5AC33197: Refreshing state... [id=/manifest.json] aws_s3_bucket_server_side_encryption_configuration.cloudWebsite_Encryption_6A8A4E29: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--logo512png_E26C5AA3: Refreshing state... [id=/logo512.png] aws_s3_bucket_website_configuration.cloudWebsite_BucketWebsiteConfiguration_920E8E41: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--indexhtml_2A2AE13C: Refreshing state... [id=/index.html] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjs_40889769: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js] aws_s3_object.cloudWebsite_File--asset-manifestjson_8187FE70: Refreshing state... [id=/asset-manifest.json] aws_s3_object.cloudWebsite_File--static--js--mainf35fcf80jsmap_8EB0B4F9: Refreshing state... [id=/static/js/main.f35fcf80.js.map] aws_s3_object.cloudWebsite_File--logo192png_6E513B20: Refreshing state... [id=/logo192.png] aws_s3_bucket_public_access_block.cloudWebsite_PublicAccessBlock_18A70311: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9cssmap_D475E55B: Refreshing state... [id=/static/css/main.bc8dc0a9.css.map] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6: Refreshing state... [id=VotingAppApi-OnRequest-52bc3c17-c89daf14] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52: Refreshing state... [id=VotingAppApi-OnRequest-8d2e75ec-c8cf8e09] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289: Refreshing state... [id=VotingAppApi-OnRequest-41f14472-c87bddf9] aws_lambda_function.InitializeTable_Function_FD00736D: Refreshing state... [id=Function-c8e7055b] data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Reading... data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Read complete after 0s [id=573591717] aws_s3_bucket_policy.cloudWebsite_DistributionS3BucketPolicy_32B029AE: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_api_gateway_rest_api.VotingAppApi_api_CB41EC98: Refreshing state... [id=dfh6uhtoa0] aws_lambda_permission.VotingAppApi_api_permission-POST-57590acc_3E83C8F6: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-57590acc] aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894: Refreshing state... [id=q0wnc2] aws_lambda_permission.VotingAppApi_api_permission-POST-53dc1f64_98751060: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-53dc1f64] aws_lambda_permission.VotingAppApi_api_permission-GET-5969f3af_56B4A504: Refreshing state... [id=AllowExecutionFromAPIGateway-GET-5969f3af] aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA: Refreshing state... [id=ags-dfh6uhtoa0-prod] aws_s3_object.cloudWebsite_File-configjson_591A81BA: Refreshing state... [id=config.json] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place - destroy -/+ destroy and then create replacement +/- create replacement and then destroy <= read (data resources) Terraform will perform the following actions: # data.aws_lambda_invocation.InitializeTable_Invocation_6E01246F will be read during apply # (depends on a resource or a module with changes pending) <= data "aws_lambda_invocation" "InitializeTable_Invocation_6E01246F" { + function_name = "Function-c8e7055b" + id = (known after apply) + input = jsonencode({}) + result = (known after apply) } # aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894 must be replaced +/- resource "aws_api_gateway_deployment" "VotingAppApi_api_deployment_B9647894" { ~ created_date = "2023-08-11T02:02:36Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-1:223316951128:dfh6uhtoa0/" -> (known after apply) ~ id = "q0wnc2" -> (known after apply) ~ invoke_url = "https://dfh6uhtoa0.execute-api.us-east-1.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "2af98f3563769ccd0147ff1b0e990c17b84e35ff" -> "46aa03136ee612742b574d86abba9e34d1e16df4" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA will be updated in-place ~ resource "aws_api_gateway_stage" "VotingAppApi_api_stage_9B2FA9EA" { ~ deployment_id = "q0wnc2" -> (known after apply) id = "ags-dfh6uhtoa0-prod" tags = {} # (9 unchanged attributes hidden) } # aws_dynamodb_table.VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD will be created + resource "aws_dynamodb_table" "VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD" { + arn = (known after apply) + billing_mode = "PAY_PER_REQUEST" + hash_key = "Name" + id = (known after apply) + name = "DynamoDBTableAws-4b65a10e" + read_capacity = (known after apply) + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags_all = (known after apply) + write_capacity = (known after apply) + attribute { + name = "Name" + type = "S" } } # aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 will be destroyed # (because aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 is not in configuration) - resource "aws_dynamodb_table" "VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895" { - arn = "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab" -> null - billing_mode = "PAY_PER_REQUEST" -> null - deletion_protection_enabled = false -> null - hash_key = "Name" -> null - id = "Entries-e91f54ab" -> null - name = "Entries-e91f54ab" -> null - read_capacity = 0 -> null - stream_enabled = false -> null - table_class = "STANDARD" -> null - tags = {} -> null - tags_all = {} -> null - write_capacity = 0 -> null - attribute { - name = "Name" -> null - type = "S" -> null } - point_in_time_recovery { - enabled = false -> null } - ttl { - enabled = false -> null } } # aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519 will be updated in-place ~ resource "aws_iam_role_policy" "InitializeTable_Function_IamRolePolicy_2AD89519" { id = "terraform-20230727202411672600000001:terraform-20230727202424567600000008" name = "terraform-20230727202424567600000008" ~ policy = jsonencode( { - Statement = [ - { - Action = [ - "dynamodb:PutItem", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, ] - Version = "2012-10-17" } ) -> (known after apply) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E" { id = "terraform-20230727204725916100000001:terraform-20230727204739773400000005" name = "terraform-20230727204739773400000005" ~ policy = jsonencode( { - Statement = [ - { - Action = [ - "dynamodb:PutItem", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, - { - Action = [ - "dynamodb:GetItem", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, - { - Action = [ - "dynamodb:Scan", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, ] - Version = "2012-10-17" } ) -> (known after apply) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9" { id = "terraform-20230808003212924500000001:terraform-20230808003225755300000003" name = "terraform-20230808003225755300000003" ~ policy = jsonencode( { - Statement = [ - { - Action = [ - "dynamodb:Scan", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, ] - Version = "2012-10-17" } ) -> (known after apply) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97" { id = "terraform-20230803215115569800000002:terraform-20230803215115813700000003" name = "terraform-20230803215115813700000003" ~ policy = jsonencode( { - Statement = [ - { - Action = [ - "dynamodb:Scan", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, ] - Version = "2012-10-17" } ) -> (known after apply) # (1 unchanged attribute hidden) } # aws_lambda_function.InitializeTable_Function_FD00736D will be updated in-place ~ resource "aws_lambda_function" "InitializeTable_Function_FD00736D" { id = "Function-c8e7055b" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:15" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:15/invocations" -> (known after apply) ~ s3_key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.38a12dc4ae9459bc728a043f4f2714d0.zip" tags = {} ~ version = "15" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289" { id = "VotingAppApi-OnRequest-41f14472-c87bddf9" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:14" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:14/invocations" -> (known after apply) ~ s3_key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.899e0208a9953ebb522e6dddebcf55b8.zip" tags = {} ~ version = "14" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6" { id = "VotingAppApi-OnRequest-52bc3c17-c89daf14" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:11" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:11/invocations" -> (known after apply) ~ s3_key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.6f16a568e7a5c30681b4eac59840ae96.zip" tags = {} ~ version = "11" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52" { id = "VotingAppApi-OnRequest-8d2e75ec-c8cf8e09" ~ last_modified = "2023-08-11T22:45:42.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:13" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:13/invocations" -> (known after apply) ~ s3_key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.ae3715dbfe109a101bedb28ea9ff71ca.zip" tags = {} ~ version = "13" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_s3_object.InitializeTable_Function_S3Object_F5933D3B must be replaced -/+ resource "aws_s3_object" "InitializeTable_Function_S3Object_F5933D3B" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "8e03c3b1a18b9bd6197a67063c76e24b" -> (known after apply) ~ id = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> (known after apply) ~ key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.00605c38368835e7bf3dba2dc0a05054.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.38a12dc4ae9459bc728a043f4f2714d0.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/InitializeTable_Function_Asset_1A1B5BC3/00605C38368835E7BF3DBA2DC0A05054/archive.zip" -> "assets/InitializeTable_Function_Asset_1A1B5BC3/38A12DC4AE9459BC728A043F4F2714D0/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "6fe40ec27691961f6f91e25b417e456b" -> (known after apply) ~ id = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> (known after apply) ~ key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3b7fc1b59d8bb2a3403abfe2446965a8.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.899e0208a9953ebb522e6dddebcf55b8.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/3B7FC1B59D8BB2A3403ABFE2446965A8/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/899E0208A9953EBB522E6DDDEBCF55B8/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "a86bb7a9cc51caba4547d0cca939e346" -> (known after apply) ~ id = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> (known after apply) ~ key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.9d4cec0a859224e0ff2bd300d5e81ead.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.6f16a568e7a5c30681b4eac59840ae96.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/9D4CEC0A859224E0FF2BD300D5E81EAD/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/6F16A568E7A5C30681B4EAC59840AE96/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "b18d4a2310dc079735738f74077d6899" -> (known after apply) ~ id = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> (known after apply) ~ key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.6d4756fafd355d77fbedfc9cb2d6bf87.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.ae3715dbfe109a101bedb28ea9ff71ca.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/6D4756FAFD355D77FBEDFC9CB2D6BF87/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/AE3715DBFE109A101BEDB28EA9FF71CA/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } Plan: 6 to add, 9 to change, 6 to destroy. ```
Terraform Plan
Show Plan
``` aws_s3_bucket.Code: Refreshing state... [id=code-c84a50b1-20230727202411678600000003] aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895: Refreshing state... [id=Entries-e91f54ab] data.aws_region.Region: Reading... aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRole_0FF833EF: Refreshing state... [id=terraform-20230803215115569800000002] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRole_CBB68D47: Refreshing state... [id=terraform-20230808003212924500000001] aws_s3_bucket.cloudWebsite_WebsiteBucket_EB03D355: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_iam_role.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRole_5F3056C5: Refreshing state... [id=terraform-20230727204725916100000001] aws_cloudfront_origin_access_control.cloudWebsite_CloudfrontOac_C956968B: Refreshing state... [id=E1J2GO7P2VQ2EZ] aws_iam_role.InitializeTable_Function_IamRole_E3F0843D: Refreshing state... [id=terraform-20230727202411672600000001] data.aws_region.Region: Read complete after 0s [id=us-east-1] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9: Refreshing state... [id=terraform-20230808003212924500000001:terraform-20230808003225755300000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicyAttachment_92A90320: Refreshing state... [id=terraform-20230808003212924500000001-20230808003213158800000002] aws_iam_role_policy_attachment.InitializeTable_Function_IamRolePolicyAttachment_4435DE19: Refreshing state... [id=terraform-20230727202411672600000001-20230727202411887400000005] aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519: Refreshing state... [id=terraform-20230727202411672600000001:terraform-20230727202424567600000008] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E: Refreshing state... [id=terraform-20230727204725916100000001:terraform-20230727204739773400000005] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicyAttachment_E1980EB1: Refreshing state... [id=terraform-20230727204725916100000001-20230727204726450200000003] aws_iam_role_policy_attachment.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicyAttachment_055C2EDA: Refreshing state... [id=terraform-20230803215115569800000002-20230803215115890800000004] aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97: Refreshing state... [id=terraform-20230803215115569800000002:terraform-20230803215115813700000003] aws_s3_object.InitializeTable_Function_S3Object_F5933D3B: Refreshing state... [id=asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.0568173513a6a9c4febc4732ef1e7326.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6: Refreshing state... [id=asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.377d1403dc63687308b38743f7559cf5.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004: Refreshing state... [id=asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.00d9f0d583eabd9ae24d0f2a1e997347.zip] aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9: Refreshing state... [id=asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8dada3e3f59310e631b120afcd184d6f.zip] aws_s3_object.cloudWebsite_File--static--js--main18097b91jsmap_7BB52F34: Refreshing state... [id=/static/js/main.18097b91.js.map] aws_s3_object.cloudWebsite_File--asset-manifestjson_8187FE70: Refreshing state... [id=/asset-manifest.json] aws_s3_object.cloudWebsite_File--faviconico_A86052F9: Refreshing state... [id=/favicon.ico] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjsmap_F5D0643F: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js.map] aws_s3_object.cloudWebsite_File--static--js--78728cb0dcdchunkjs_40889769: Refreshing state... [id=/static/js/787.28cb0dcd.chunk.js] aws_cloudfront_distribution.cloudWebsite_Distribution_083B5AF9: Refreshing state... [id=E1QUV69RQ9ODON] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9css_ABAEC285: Refreshing state... [id=/static/css/main.bc8dc0a9.css] aws_s3_object.cloudWebsite_File--logo192png_6E513B20: Refreshing state... [id=/logo192.png] aws_s3_object.cloudWebsite_File--robotstxt_F93900E9: Refreshing state... [id=/robots.txt] aws_s3_object.cloudWebsite_File--static--js--main18097b91js_BE1C3BD1: Refreshing state... [id=/static/js/main.18097b91.js] aws_s3_object.cloudWebsite_File--manifestjson_5AC33197: Refreshing state... [id=/manifest.json] aws_s3_object.cloudWebsite_File--static--js--main18097b91jsLICENSEtxt_622B060C: Refreshing state... [id=/static/js/main.18097b91.js.LICENSE.txt] aws_s3_object.cloudWebsite_File--logo512png_E26C5AA3: Refreshing state... [id=/logo512.png] aws_s3_bucket_public_access_block.cloudWebsite_PublicAccessBlock_18A70311: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_bucket_website_configuration.cloudWebsite_BucketWebsiteConfiguration_920E8E41: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_s3_object.cloudWebsite_File--static--css--mainbc8dc0a9cssmap_D475E55B: Refreshing state... [id=/static/css/main.bc8dc0a9.css.map] aws_s3_object.cloudWebsite_File--indexhtml_2A2AE13C: Refreshing state... [id=/index.html] aws_lambda_function.InitializeTable_Function_FD00736D: Refreshing state... [id=Function-c8e7055b] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6: Refreshing state... [id=VotingAppApi-OnRequest-52bc3c17-c89daf14] aws_s3_bucket_server_side_encryption_configuration.cloudWebsite_Encryption_6A8A4E29: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52: Refreshing state... [id=VotingAppApi-OnRequest-8d2e75ec-c8cf8e09] aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289: Refreshing state... [id=VotingAppApi-OnRequest-41f14472-c87bddf9] data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Reading... data.aws_iam_policy_document.cloudWebsite_AllowDistributionReadOnly_89DC4FD0: Read complete after 0s [id=573591717] aws_s3_bucket_policy.cloudWebsite_DistributionS3BucketPolicy_32B029AE: Refreshing state... [id=cloud-website-c8e58765-20230803215115368500000001] aws_api_gateway_rest_api.VotingAppApi_api_CB41EC98: Refreshing state... [id=dfh6uhtoa0] aws_lambda_permission.VotingAppApi_api_permission-GET-5969f3af_56B4A504: Refreshing state... [id=AllowExecutionFromAPIGateway-GET-5969f3af] aws_lambda_permission.VotingAppApi_api_permission-POST-53dc1f64_98751060: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-53dc1f64] aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894: Refreshing state... [id=q0wnc2] aws_lambda_permission.VotingAppApi_api_permission-POST-57590acc_3E83C8F6: Refreshing state... [id=AllowExecutionFromAPIGateway-POST-57590acc] aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA: Refreshing state... [id=ags-dfh6uhtoa0-prod] aws_s3_object.cloudWebsite_File-configjson_591A81BA: Refreshing state... [id=config.json] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place - destroy -/+ destroy and then create replacement +/- create replacement and then destroy <= read (data resources) Terraform will perform the following actions: # data.aws_lambda_invocation.InitializeTable_Invocation_6E01246F will be read during apply # (depends on a resource or a module with changes pending) <= data "aws_lambda_invocation" "InitializeTable_Invocation_6E01246F" { + function_name = "Function-c8e7055b" + id = (known after apply) + input = jsonencode({}) + result = (known after apply) } # aws_api_gateway_deployment.VotingAppApi_api_deployment_B9647894 must be replaced +/- resource "aws_api_gateway_deployment" "VotingAppApi_api_deployment_B9647894" { ~ created_date = "2023-08-11T02:02:36Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-1:223316951128:dfh6uhtoa0/" -> (known after apply) ~ id = "q0wnc2" -> (known after apply) ~ invoke_url = "https://dfh6uhtoa0.execute-api.us-east-1.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "2af98f3563769ccd0147ff1b0e990c17b84e35ff" -> "46aa03136ee612742b574d86abba9e34d1e16df4" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.VotingAppApi_api_stage_9B2FA9EA will be updated in-place ~ resource "aws_api_gateway_stage" "VotingAppApi_api_stage_9B2FA9EA" { ~ deployment_id = "q0wnc2" -> (known after apply) id = "ags-dfh6uhtoa0-prod" tags = {} # (9 unchanged attributes hidden) } # aws_dynamodb_table.VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD will be created + resource "aws_dynamodb_table" "VotingAppStore_Entries_DynamoDBTableAws_tfawsdynamodbTableDynamodbTable_894280AD" { + arn = (known after apply) + billing_mode = "PAY_PER_REQUEST" + hash_key = "Name" + id = (known after apply) + name = "DynamoDBTableAws-4b65a10e" + read_capacity = (known after apply) + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags_all = (known after apply) + write_capacity = (known after apply) + attribute { + name = "Name" + type = "S" } } # aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 will be destroyed # (because aws_dynamodb_table.VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895 is not in configuration) - resource "aws_dynamodb_table" "VotingAppStore_Entries_tfawsdynamodbTableDynamodbTable_76D1C895" { - arn = "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab" -> null - billing_mode = "PAY_PER_REQUEST" -> null - deletion_protection_enabled = false -> null - hash_key = "Name" -> null - id = "Entries-e91f54ab" -> null - name = "Entries-e91f54ab" -> null - read_capacity = 0 -> null - stream_enabled = false -> null - table_class = "STANDARD" -> null - tags = {} -> null - tags_all = {} -> null - write_capacity = 0 -> null - attribute { - name = "Name" -> null - type = "S" -> null } - point_in_time_recovery { - enabled = false -> null } - ttl { - enabled = false -> null } } # aws_iam_role_policy.InitializeTable_Function_IamRolePolicy_2AD89519 will be updated in-place ~ resource "aws_iam_role_policy" "InitializeTable_Function_IamRolePolicy_2AD89519" { id = "terraform-20230727202411672600000001:terraform-20230727202424567600000008" name = "terraform-20230727202424567600000008" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-41f14472_IamRolePolicy_25C9720E" { id = "terraform-20230727204725916100000001:terraform-20230727204739773400000005" name = "terraform-20230727204739773400000005" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:PutItem", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, - { - Action = [ - "dynamodb:GetItem", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, - { - Action = [ - "dynamodb:Scan", ] - Effect = "Allow" - Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_IamRolePolicy_0F307DC9" { id = "terraform-20230808003212924500000001:terraform-20230808003225755300000003" name = "terraform-20230808003225755300000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_iam_role_policy.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97 will be updated in-place ~ resource "aws_iam_role_policy" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_IamRolePolicy_2D34FA97" { id = "terraform-20230803215115569800000002:terraform-20230803215115813700000003" name = "terraform-20230803215115813700000003" ~ policy = jsonencode( ~ { ~ Statement = [ ~ { ~ Action = [ - "dynamodb:Scan", ] -> "none:null" ~ Resource = [ - "arn:aws:dynamodb:us-east-1:223316951128:table/Entries-e91f54ab", ] -> "*" # (1 unchanged attribute hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } # aws_lambda_function.InitializeTable_Function_FD00736D will be updated in-place ~ resource "aws_lambda_function" "InitializeTable_Function_FD00736D" { id = "Function-c8e7055b" ~ last_modified = "2023-08-11T19:56:03.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:13" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:Function-c8e7055b:13/invocations" -> (known after apply) ~ s3_key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.0568173513a6a9c4febc4732ef1e7326.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.d4b740d886dc7a9e2840747a41e73a7b.zip" tags = {} ~ version = "13" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-41f14472_39478289" { id = "VotingAppApi-OnRequest-41f14472-c87bddf9" ~ last_modified = "2023-08-11T19:56:03.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:12" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-41f14472-c87bddf9:12/invocations" -> (known after apply) ~ s3_key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8dada3e3f59310e631b120afcd184d6f.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3fd0ddb4c391d03f74f789dcba8c7da4.zip" tags = {} ~ version = "12" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_02CD08E6" { id = "VotingAppApi-OnRequest-52bc3c17-c89daf14" ~ last_modified = "2023-08-11T19:56:03.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:9" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-52bc3c17-c89daf14:9/invocations" -> (known after apply) ~ s3_key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.377d1403dc63687308b38743f7559cf5.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.3b743f75a0106a5fe8839716821c8925.zip" tags = {} ~ version = "9" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_lambda_function.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52 will be updated in-place ~ resource "aws_lambda_function" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_93510F52" { id = "VotingAppApi-OnRequest-8d2e75ec-c8cf8e09" ~ last_modified = "2023-08-11T19:56:03.000+0000" -> (known after apply) ~ qualified_arn = "arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:11" -> (known after apply) ~ qualified_invoke_arn = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:223316951128:function:VotingAppApi-OnRequest-8d2e75ec-c8cf8e09:11/invocations" -> (known after apply) ~ s3_key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.00d9f0d583eabd9ae24d0f2a1e997347.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.1d1d7258dcd71676e57a8d7ee29b7716.zip" tags = {} ~ version = "11" -> (known after apply) # (18 unchanged attributes hidden) ~ environment { ~ variables = { ~ "WING_TOKEN_TFTOKEN_TOKEN_1" = "\"Entries-e91f54ab\"" -> "\"DynamoDBTableAws-4b65a10e\"" # (2 unchanged elements hidden) } } # (2 unchanged blocks hidden) } # aws_s3_object.InitializeTable_Function_S3Object_F5933D3B must be replaced -/+ resource "aws_s3_object" "InitializeTable_Function_S3Object_F5933D3B" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "ece165a020059c69422cff4c27423035" -> (known after apply) ~ id = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.0568173513a6a9c4febc4732ef1e7326.zip" -> (known after apply) ~ key = "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.0568173513a6a9c4febc4732ef1e7326.zip" -> "asset.c8e7055bb3773d297f63b5172fb6a571cddc069012.d4b740d886dc7a9e2840747a41e73a7b.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/InitializeTable_Function_Asset_1A1B5BC3/0568173513A6A9C4FEBC4732EF1E7326/archive.zip" -> "assets/InitializeTable_Function_Asset_1A1B5BC3/D4B740D886DC7A9E2840747A41E73A7B/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-41f14472_S3Object_C95F6BA9" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "247988c355126beb0e335b66d5db5388" -> (known after apply) ~ id = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8dada3e3f59310e631b120afcd184d6f.zip" -> (known after apply) ~ key = "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.8dada3e3f59310e631b120afcd184d6f.zip" -> "asset.c87bddf927b70f22f963a14d64ce5f4bf1372d398a.3fd0ddb4c391d03f74f789dcba8c7da4.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/8DADA3E3F59310E631B120AFCD184D6F/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-41f14472_Asset_94F55D63/3FD0DDB4C391D03F74F789DCBA8C7DA4/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-52bc3c17_S3Object_F3A42DC6" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "3f24c2dfa372943f2a98dfd37f25f737" -> (known after apply) ~ id = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.377d1403dc63687308b38743f7559cf5.zip" -> (known after apply) ~ key = "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.377d1403dc63687308b38743f7559cf5.zip" -> "asset.c89daf14978fb4fcb47ef703ae9610992b519c2727.3b743f75a0106a5fe8839716821c8925.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/377D1403DC63687308B38743F7559CF5/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-52bc3c17_Asset_FBAD96D6/3B743F75A0106A5FE8839716821C8925/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } # aws_s3_object.VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004 must be replaced +/- resource "aws_s3_object" "VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_S3Object_F8CCE004" { ~ bucket_key_enabled = false -> (known after apply) ~ content_type = "binary/octet-stream" -> (known after apply) ~ etag = "6a08c76e11998f7fa13875bda042d488" -> (known after apply) ~ id = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.00d9f0d583eabd9ae24d0f2a1e997347.zip" -> (known after apply) ~ key = "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.00d9f0d583eabd9ae24d0f2a1e997347.zip" -> "asset.c8cf8e09741b572c80a663f9c8cf9ce40395e87b08.1d1d7258dcd71676e57a8d7ee29b7716.zip" # forces replacement + kms_key_id = (known after apply) - metadata = {} -> null ~ server_side_encryption = "AES256" -> (known after apply) ~ source = "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/00D9F0D583EABD9AE24D0F2A1E997347/archive.zip" -> "assets/VotingAppApi_VotingAppApi-OnRequest-8d2e75ec_Asset_4A29FD21/1D1D7258DCD71676E57A8D7EE29B7716/archive.zip" ~ storage_class = "STANDARD" -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) + version_id = (known after apply) # (3 unchanged attributes hidden) } Plan: 6 to add, 9 to change, 6 to destroy. ```