mongulu-cm / mtchoun-mouh

Notification platform for passport delivrance for Cameroon consulate at Marseille(France)
https://mtchoun-mouh.mongulu.cm/
GNU General Public License v3.0
4 stars 2 forks source link

feat: add demo again #196

Closed billmetangmo closed 2 months ago

infracost[bot] commented 2 months ago

💰 Infracost report

Monthly estimate generated

This comment will be updated when code changes.

billmetangmo commented 2 months ago

Plan Result

CI link

Plan: 27 to add, 0 to change, 0 to destroy.
Change Result (Click me) ```hcl # aws_api_gateway_deployment.test will be created + resource "aws_api_gateway_deployment" "test" { + created_date = (known after apply) + execution_arn = (known after apply) + id = (known after apply) + invoke_url = (known after apply) + rest_api_id = (known after apply) + stage_name = "mtchoun-mouh-add-demo-page-again-dev" } # aws_api_gateway_integration.integration will be created + resource "aws_api_gateway_integration" "integration" { + cache_namespace = (known after apply) + connection_type = "INTERNET" + http_method = "POST" + id = (known after apply) + integration_http_method = "POST" + passthrough_behavior = (known after apply) + resource_id = (known after apply) + rest_api_id = (known after apply) + timeout_milliseconds = 29000 + type = "AWS_PROXY" + uri = (known after apply) } # aws_api_gateway_method.method will be created + resource "aws_api_gateway_method" "method" { + api_key_required = false + authorization = "NONE" + http_method = "POST" + id = (known after apply) + resource_id = (known after apply) + rest_api_id = (known after apply) } # aws_api_gateway_method_response.method_response_200 will be created + resource "aws_api_gateway_method_response" "method_response_200" { + http_method = "POST" + id = (known after apply) + resource_id = (known after apply) + response_parameters = { + "method.response.header.Access-Control-Allow-Headers" = true + "method.response.header.Access-Control-Allow-Methods" = false + "method.response.header.Access-Control-Allow-Origin" = true } + rest_api_id = (known after apply) + status_code = "200" } # aws_api_gateway_resource.resource will be created + resource "aws_api_gateway_resource" "resource" { + id = (known after apply) + parent_id = (known after apply) + path = (known after apply) + path_part = "register" + rest_api_id = (known after apply) } # aws_api_gateway_rest_api.api will be created + resource "aws_api_gateway_rest_api" "api" { + api_key_source = (known after apply) + arn = (known after apply) + binary_media_types = (known after apply) + created_date = (known after apply) + description = "Allow to register user for sending notifications later" + disable_execute_api_endpoint = (known after apply) + execution_arn = (known after apply) + id = (known after apply) + minimum_compression_size = -1 + name = "mtchoun-mouh-add-demo-page-again-user registration" + policy = (known after apply) + root_resource_id = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + endpoint_configuration { + types = [ + "REGIONAL", ] + vpc_endpoint_ids = (known after apply) } } # aws_cloudwatch_event_rule.scheduler will be created + resource "aws_cloudwatch_event_rule" "scheduler" { + arn = (known after apply) + description = "extract image - verify passport is out - send notifications" + event_bus_name = "default" + id = (known after apply) + is_enabled = true + name = "mtchoun-mouh-add-demo-page-again-trigger_user_scan" + name_prefix = (known after apply) + schedule_expression = "cron(0 8 ? * MON-FRI *)" + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } } # aws_cloudwatch_event_target.target will be created + resource "aws_cloudwatch_event_target" "target" { + arn = (known after apply) + event_bus_name = "default" + id = (known after apply) + rule = "mtchoun-mouh-add-demo-page-again-trigger_user_scan" + target_id = "lambda" } # aws_dynamodb_table.Link_table will be created + resource "aws_dynamodb_table" "Link_table" { + arn = (known after apply) + billing_mode = "PAY_PER_REQUEST" + hash_key = "link" + id = (known after apply) + name = "mtchoun-mouh-add-demo-page-again-Link_table" + read_capacity = 3 + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + write_capacity = 1 + attribute { + name = "link" + type = "S" } + point_in_time_recovery { + enabled = false } + server_side_encryption (known after apply) } # aws_dynamodb_table.Register will be created + resource "aws_dynamodb_table" "Register" { + arn = (known after apply) + billing_mode = "PROVISIONED" + hash_key = "Name" + id = (known after apply) + name = "mtchoun-mouh-add-demo-page-again-Register" + read_capacity = 1 + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + write_capacity = 1 + attribute { + name = "Name" + type = "S" } + point_in_time_recovery { + enabled = false } + server_side_encryption (known after apply) } # aws_dynamodb_table.Users will be created + resource "aws_dynamodb_table" "Users" { + arn = (known after apply) + billing_mode = "PROVISIONED" + hash_key = "UserName" + id = (known after apply) + name = "mtchoun-mouh-add-demo-page-again-Users" + read_capacity = 1 + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + write_capacity = 1 + attribute { + name = "UserName" + type = "S" } + point_in_time_recovery { + enabled = false } + server_side_encryption (known after apply) } # aws_lambda_function.lambda will be created + resource "aws_lambda_function" "lambda" { + arn = (known after apply) + filename = "api/lambda.zip" + function_name = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" + handler = "lambda.register_handler" + id = (known after apply) + invoke_arn = (known after apply) + last_modified = (known after apply) + layers = (known after apply) + memory_size = 128 + package_type = "Zip" + publish = false + qualified_arn = (known after apply) + reserved_concurrent_executions = -1 + role = "arn:aws:iam::053932140667:role/website-deployer" + runtime = "python3.8" + signing_job_arn = (known after apply) + signing_profile_version_arn = (known after apply) + source_code_hash = "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" + source_code_size = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + timeout = 10 + version = (known after apply) + environment { + variables = { + "API_KEY" = (sensitive value) + "BUCKET_NAME" = "mtchoun-mouh-add-demo-page-again-djansang" + "ENV" = "mtchoun-mouh-add-demo-page-again" + "LINKS_TABLE" = "mtchoun-mouh-add-demo-page-again-Link_table" + "MAINTAINER_MAIL" = (sensitive value) + "REGION" = "eu-central-1" + "REGISTERS_TABLE" = "mtchoun-mouh-add-demo-page-again-Register" + "SENTRY_DNS" = (sensitive value) + "USERS_TABLE" = "mtchoun-mouh-add-demo-page-again-Users" } } + tracing_config (known after apply) } # aws_lambda_function.scan will be created + resource "aws_lambda_function" "scan" { + arn = (known after apply) + filename = "api/lambda.zip" + function_name = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" + handler = "lambda.scan_handler" + id = (known after apply) + invoke_arn = (known after apply) + last_modified = (known after apply) + memory_size = 128 + package_type = "Zip" + publish = false + qualified_arn = (known after apply) + reserved_concurrent_executions = -1 + role = "arn:aws:iam::053932140667:role/website-deployer" + runtime = "python3.8" + signing_job_arn = (known after apply) + signing_profile_version_arn = (known after apply) + source_code_hash = "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" + source_code_size = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + timeout = 900 + version = (known after apply) + environment { + variables = { + "API_KEY" = (sensitive value) + "BUCKET_NAME" = "mtchoun-mouh-add-demo-page-again-djansang" + "ENV" = "mtchoun-mouh-add-demo-page-again" + "LINKS_TABLE" = "mtchoun-mouh-add-demo-page-again-Link_table" + "MAINTAINER_MAIL" = (sensitive value) + "REGION" = "eu-central-1" + "REGISTERS_TABLE" = "mtchoun-mouh-add-demo-page-again-Register" + "SENTRY_DNS" = (sensitive value) + "USERS_TABLE" = "mtchoun-mouh-add-demo-page-again-Users" } } + tracing_config (known after apply) } # aws_lambda_layer_version.test_lambda_layer will be created + resource "aws_lambda_layer_version" "test_lambda_layer" { + arn = (known after apply) + compatible_runtimes = [ + "python3.7", + "python3.8", ] + created_date = (known after apply) + filename = "make_lamda_layer/python.zip" + id = (known after apply) + layer_arn = (known after apply) + layer_name = "test_lambda_layer" + signing_job_arn = (known after apply) + signing_profile_version_arn = (known after apply) + source_code_hash = (known after apply) + source_code_size = (known after apply) + version = (known after apply) } # aws_lambda_permission.allow_cloudwatch_to_call_check_foo will be created + resource "aws_lambda_permission" "allow_cloudwatch_to_call_check_foo" { + action = "lambda:InvokeFunction" + function_name = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" + id = (known after apply) + principal = "events.amazonaws.com" + source_arn = (known after apply) + statement_id = "AllowExecutionFromCloudWatch" } # aws_lambda_permission.apigw_lambda will be created + resource "aws_lambda_permission" "apigw_lambda" { + action = "lambda:InvokeFunction" + function_name = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" + id = (known after apply) + principal = "apigateway.amazonaws.com" + source_arn = (known after apply) + statement_id = "AllowExecutionFromAPIGateway" } # aws_s3_bucket.images will be created + resource "aws_s3_bucket" "images" { + acceleration_status = (known after apply) + acl = "private" + arn = (known after apply) + bucket = "mtchoun-mouh-add-demo-page-again-djansang" + bucket_domain_name = (known after apply) + bucket_regional_domain_name = (known after apply) + force_destroy = true + hosted_zone_id = (known after apply) + id = (known after apply) + region = (known after apply) + request_payer = (known after apply) + tags = { + "Name" = "images" + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "Name" = "images" + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + website_domain = (known after apply) + website_endpoint = (known after apply) + versioning (known after apply) } # aws_s3_bucket.website will be created + resource "aws_s3_bucket" "website" { + acceleration_status = (known after apply) + acl = "private" + arn = (known after apply) + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_domain_name = (known after apply) + bucket_regional_domain_name = (known after apply) + force_destroy = true + hosted_zone_id = (known after apply) + id = (known after apply) + region = (known after apply) + request_payer = (known after apply) + tags = { + "Name" = "Website" + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "Name" = "Website" + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + website_domain = (known after apply) + website_endpoint = (known after apply) + cors_rule { + allowed_headers = [ + "*", ] + allowed_methods = [ + "PUT", + "POST", + "GET", ] + allowed_origins = [ + "*", ] } + versioning (known after apply) + website { + error_document = "error.html" + index_document = "index.html" } } # aws_s3_bucket_object.example_file will be created + resource "aws_s3_bucket_object" "example_file" { + acl = "private" + bucket = (known after apply) + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "index.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/index.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # aws_s3_bucket_policy.website will be created + resource "aws_s3_bucket_policy" "website" { + bucket = (known after apply) + id = (known after apply) + policy = (known after apply) } # aws_s3_bucket_public_access_block.website will be created + resource "aws_s3_bucket_public_access_block" "website" { + block_public_acls = false + block_public_policy = false + bucket = (known after apply) + id = (known after apply) + ignore_public_acls = false + restrict_public_buckets = false } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } # module.cors.aws_api_gateway_integration._ will be created + resource "aws_api_gateway_integration" "_" { + cache_namespace = (known after apply) + connection_type = "INTERNET" + content_handling = "CONVERT_TO_TEXT" + http_method = "OPTIONS" + id = (known after apply) + passthrough_behavior = (known after apply) + request_templates = { + "application/json" = jsonencode( { + statusCode = 200 } ) } + resource_id = (known after apply) + rest_api_id = (known after apply) + timeout_milliseconds = 29000 + type = "MOCK" } # module.cors.aws_api_gateway_integration_response._ will be created + resource "aws_api_gateway_integration_response" "_" { + http_method = "OPTIONS" + id = (known after apply) + resource_id = (known after apply) + response_parameters = { + "method.response.header.Access-Control-Allow-Headers" = "'Authorization,Content-Type,X-Amz-Date,X-Amz-Security-Token,X-Api-Key'" + "method.response.header.Access-Control-Allow-Methods" = "'OPTIONS,HEAD,GET,POST,PUT,PATCH,DELETE'" + "method.response.header.Access-Control-Allow-Origin" = "'*'" + "method.response.header.Access-Control-Max-Age" = "'7200'" } + rest_api_id = (known after apply) + status_code = "200" } # module.cors.aws_api_gateway_method._ will be created + resource "aws_api_gateway_method" "_" { + api_key_required = false + authorization = "NONE" + http_method = "OPTIONS" + id = (known after apply) + resource_id = (known after apply) + rest_api_id = (known after apply) } # module.cors.aws_api_gateway_method_response._ will be created + resource "aws_api_gateway_method_response" "_" { + http_method = "OPTIONS" + id = (known after apply) + resource_id = (known after apply) + response_models = { + "application/json" = "Empty" } + response_parameters = { + "method.response.header.Access-Control-Allow-Headers" = true + "method.response.header.Access-Control-Allow-Methods" = true + "method.response.header.Access-Control-Allow-Origin" = true + "method.response.header.Access-Control-Max-Age" = true } + rest_api_id = (known after apply) + status_code = "200" } Plan: 27 to add, 0 to change, 0 to destroy. Changes to Outputs: + register_table = "mtchoun-mouh-add-demo-page-again-Register" + stage_url = (known after apply) + website_url = (known after apply) ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 27 added, 0 changed, 0 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-u8TbR3KsVcvBbfmh Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 0s [id=2ada4151693f1acad125a1a8fd09398912ad8f31] data.aws_caller_identity.current: Reading... data.aws_iam_role.role: Reading... data.aws_caller_identity.current: Read complete after 0s [id=053932140667] data.aws_iam_role.role: Read complete after 0s [id=website-deployer] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # aws_api_gateway_deployment.test will be created + resource "aws_api_gateway_deployment" "test" { + created_date = (known after apply) + execution_arn = (known after apply) + id = (known after apply) + invoke_url = (known after apply) + rest_api_id = (known after apply) + stage_name = "mtchoun-mouh-add-demo-page-again-dev" } # aws_api_gateway_integration.integration will be created + resource "aws_api_gateway_integration" "integration" { + cache_namespace = (known after apply) + connection_type = "INTERNET" + http_method = "POST" + id = (known after apply) + integration_http_method = "POST" + passthrough_behavior = (known after apply) + resource_id = (known after apply) + rest_api_id = (known after apply) + timeout_milliseconds = 29000 + type = "AWS_PROXY" + uri = (known after apply) } # aws_api_gateway_method.method will be created + resource "aws_api_gateway_method" "method" { + api_key_required = false + authorization = "NONE" + http_method = "POST" + id = (known after apply) + resource_id = (known after apply) + rest_api_id = (known after apply) } # aws_api_gateway_method_response.method_response_200 will be created + resource "aws_api_gateway_method_response" "method_response_200" { + http_method = "POST" + id = (known after apply) + resource_id = (known after apply) + response_parameters = { + "method.response.header.Access-Control-Allow-Headers" = true + "method.response.header.Access-Control-Allow-Methods" = false + "method.response.header.Access-Control-Allow-Origin" = true } + rest_api_id = (known after apply) + status_code = "200" } # aws_api_gateway_resource.resource will be created + resource "aws_api_gateway_resource" "resource" { + id = (known after apply) + parent_id = (known after apply) + path = (known after apply) + path_part = "register" + rest_api_id = (known after apply) } # aws_api_gateway_rest_api.api will be created + resource "aws_api_gateway_rest_api" "api" { + api_key_source = (known after apply) + arn = (known after apply) + binary_media_types = (known after apply) + created_date = (known after apply) + description = "Allow to register user for sending notifications later" + disable_execute_api_endpoint = (known after apply) + execution_arn = (known after apply) + id = (known after apply) + minimum_compression_size = -1 + name = "mtchoun-mouh-add-demo-page-again-user registration" + policy = (known after apply) + root_resource_id = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + endpoint_configuration { + types = [ + "REGIONAL", ] + vpc_endpoint_ids = (known after apply) } } # aws_cloudwatch_event_rule.scheduler will be created + resource "aws_cloudwatch_event_rule" "scheduler" { + arn = (known after apply) + description = "extract image - verify passport is out - send notifications" + event_bus_name = "default" + id = (known after apply) + is_enabled = true + name = "mtchoun-mouh-add-demo-page-again-trigger_user_scan" + name_prefix = (known after apply) + schedule_expression = "cron(0 8 ? * MON-FRI *)" + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } } # aws_cloudwatch_event_target.target will be created + resource "aws_cloudwatch_event_target" "target" { + arn = (known after apply) + event_bus_name = "default" + id = (known after apply) + rule = "mtchoun-mouh-add-demo-page-again-trigger_user_scan" + target_id = "lambda" } # aws_dynamodb_table.Link_table will be created + resource "aws_dynamodb_table" "Link_table" { + arn = (known after apply) + billing_mode = "PAY_PER_REQUEST" + hash_key = "link" + id = (known after apply) + name = "mtchoun-mouh-add-demo-page-again-Link_table" + read_capacity = 3 + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + write_capacity = 1 + attribute { + name = "link" + type = "S" } + point_in_time_recovery { + enabled = false } + server_side_encryption (known after apply) } # aws_dynamodb_table.Register will be created + resource "aws_dynamodb_table" "Register" { + arn = (known after apply) + billing_mode = "PROVISIONED" + hash_key = "Name" + id = (known after apply) + name = "mtchoun-mouh-add-demo-page-again-Register" + read_capacity = 1 + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + write_capacity = 1 + attribute { + name = "Name" + type = "S" } + point_in_time_recovery { + enabled = false } + server_side_encryption (known after apply) } # aws_dynamodb_table.Users will be created + resource "aws_dynamodb_table" "Users" { + arn = (known after apply) + billing_mode = "PROVISIONED" + hash_key = "UserName" + id = (known after apply) + name = "mtchoun-mouh-add-demo-page-again-Users" + read_capacity = 1 + stream_arn = (known after apply) + stream_label = (known after apply) + stream_view_type = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + write_capacity = 1 + attribute { + name = "UserName" + type = "S" } + point_in_time_recovery { + enabled = false } + server_side_encryption (known after apply) } # aws_lambda_function.lambda will be created + resource "aws_lambda_function" "lambda" { + arn = (known after apply) + filename = "api/lambda.zip" + function_name = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" + handler = "lambda.register_handler" + id = (known after apply) + invoke_arn = (known after apply) + last_modified = (known after apply) + layers = (known after apply) + memory_size = 128 + package_type = "Zip" + publish = false + qualified_arn = (known after apply) + reserved_concurrent_executions = -1 + role = "arn:aws:iam::053932140667:role/website-deployer" + runtime = "python3.8" + signing_job_arn = (known after apply) + signing_profile_version_arn = (known after apply) + source_code_hash = "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" + source_code_size = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + timeout = 10 + version = (known after apply) + environment { + variables = { + "API_KEY" = (sensitive value) + "BUCKET_NAME" = "mtchoun-mouh-add-demo-page-again-djansang" + "ENV" = "mtchoun-mouh-add-demo-page-again" + "LINKS_TABLE" = "mtchoun-mouh-add-demo-page-again-Link_table" + "MAINTAINER_MAIL" = (sensitive value) + "REGION" = "eu-central-1" + "REGISTERS_TABLE" = "mtchoun-mouh-add-demo-page-again-Register" + "SENTRY_DNS" = (sensitive value) + "USERS_TABLE" = "mtchoun-mouh-add-demo-page-again-Users" } } + tracing_config (known after apply) } # aws_lambda_function.scan will be created + resource "aws_lambda_function" "scan" { + arn = (known after apply) + filename = "api/lambda.zip" + function_name = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" + handler = "lambda.scan_handler" + id = (known after apply) + invoke_arn = (known after apply) + last_modified = (known after apply) + memory_size = 128 + package_type = "Zip" + publish = false + qualified_arn = (known after apply) + reserved_concurrent_executions = -1 + role = "arn:aws:iam::053932140667:role/website-deployer" + runtime = "python3.8" + signing_job_arn = (known after apply) + signing_profile_version_arn = (known after apply) + source_code_hash = "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" + source_code_size = (known after apply) + tags = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + timeout = 900 + version = (known after apply) + environment { + variables = { + "API_KEY" = (sensitive value) + "BUCKET_NAME" = "mtchoun-mouh-add-demo-page-again-djansang" + "ENV" = "mtchoun-mouh-add-demo-page-again" + "LINKS_TABLE" = "mtchoun-mouh-add-demo-page-again-Link_table" + "MAINTAINER_MAIL" = (sensitive value) + "REGION" = "eu-central-1" + "REGISTERS_TABLE" = "mtchoun-mouh-add-demo-page-again-Register" + "SENTRY_DNS" = (sensitive value) + "USERS_TABLE" = "mtchoun-mouh-add-demo-page-again-Users" } } + tracing_config (known after apply) } # aws_lambda_layer_version.test_lambda_layer will be created + resource "aws_lambda_layer_version" "test_lambda_layer" { + arn = (known after apply) + compatible_runtimes = [ + "python3.7", + "python3.8", ] + created_date = (known after apply) + filename = "make_lamda_layer/python.zip" + id = (known after apply) + layer_arn = (known after apply) + layer_name = "test_lambda_layer" + signing_job_arn = (known after apply) + signing_profile_version_arn = (known after apply) + source_code_hash = (known after apply) + source_code_size = (known after apply) + version = (known after apply) } # aws_lambda_permission.allow_cloudwatch_to_call_check_foo will be created + resource "aws_lambda_permission" "allow_cloudwatch_to_call_check_foo" { + action = "lambda:InvokeFunction" + function_name = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" + id = (known after apply) + principal = "events.amazonaws.com" + source_arn = (known after apply) + statement_id = "AllowExecutionFromCloudWatch" } # aws_lambda_permission.apigw_lambda will be created + resource "aws_lambda_permission" "apigw_lambda" { + action = "lambda:InvokeFunction" + function_name = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" + id = (known after apply) + principal = "apigateway.amazonaws.com" + source_arn = (known after apply) + statement_id = "AllowExecutionFromAPIGateway" } # aws_s3_bucket.images will be created + resource "aws_s3_bucket" "images" { + acceleration_status = (known after apply) + acl = "private" + arn = (known after apply) + bucket = "mtchoun-mouh-add-demo-page-again-djansang" + bucket_domain_name = (known after apply) + bucket_regional_domain_name = (known after apply) + force_destroy = true + hosted_zone_id = (known after apply) + id = (known after apply) + region = (known after apply) + request_payer = (known after apply) + tags = { + "Name" = "images" + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "Name" = "images" + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + website_domain = (known after apply) + website_endpoint = (known after apply) + versioning (known after apply) } # aws_s3_bucket.website will be created + resource "aws_s3_bucket" "website" { + acceleration_status = (known after apply) + acl = "private" + arn = (known after apply) + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_domain_name = (known after apply) + bucket_regional_domain_name = (known after apply) + force_destroy = true + hosted_zone_id = (known after apply) + id = (known after apply) + region = (known after apply) + request_payer = (known after apply) + tags = { + "Name" = "Website" + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + tags_all = { + "Name" = "Website" + "environment" = "mtchoun-mouh-master" + "project" = "mtchoun-mouh" } + website_domain = (known after apply) + website_endpoint = (known after apply) + cors_rule { + allowed_headers = [ + "*", ] + allowed_methods = [ + "PUT", + "POST", + "GET", ] + allowed_origins = [ + "*", ] } + versioning (known after apply) + website { + error_document = "error.html" + index_document = "index.html" } } # aws_s3_bucket_object.example_file will be created + resource "aws_s3_bucket_object" "example_file" { + acl = "private" + bucket = (known after apply) + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "index.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/index.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # aws_s3_bucket_policy.website will be created + resource "aws_s3_bucket_policy" "website" { + bucket = (known after apply) + id = (known after apply) + policy = (known after apply) } # aws_s3_bucket_public_access_block.website will be created + resource "aws_s3_bucket_public_access_block" "website" { + block_public_acls = false + block_public_policy = false + bucket = (known after apply) + id = (known after apply) + ignore_public_acls = false + restrict_public_buckets = false } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } # module.cors.aws_api_gateway_integration._ will be created + resource "aws_api_gateway_integration" "_" { + cache_namespace = (known after apply) + connection_type = "INTERNET" + content_handling = "CONVERT_TO_TEXT" + http_method = "OPTIONS" + id = (known after apply) + passthrough_behavior = (known after apply) + request_templates = { + "application/json" = jsonencode( { + statusCode = 200 } ) } + resource_id = (known after apply) + rest_api_id = (known after apply) + timeout_milliseconds = 29000 + type = "MOCK" } # module.cors.aws_api_gateway_integration_response._ will be created + resource "aws_api_gateway_integration_response" "_" { + http_method = "OPTIONS" + id = (known after apply) + resource_id = (known after apply) + response_parameters = { + "method.response.header.Access-Control-Allow-Headers" = "'Authorization,Content-Type,X-Amz-Date,X-Amz-Security-Token,X-Api-Key'" + "method.response.header.Access-Control-Allow-Methods" = "'OPTIONS,HEAD,GET,POST,PUT,PATCH,DELETE'" + "method.response.header.Access-Control-Allow-Origin" = "'*'" + "method.response.header.Access-Control-Max-Age" = "'7200'" } + rest_api_id = (known after apply) + status_code = "200" } # module.cors.aws_api_gateway_method._ will be created + resource "aws_api_gateway_method" "_" { + api_key_required = false + authorization = "NONE" + http_method = "OPTIONS" + id = (known after apply) + resource_id = (known after apply) + rest_api_id = (known after apply) } # module.cors.aws_api_gateway_method_response._ will be created + resource "aws_api_gateway_method_response" "_" { + http_method = "OPTIONS" + id = (known after apply) + resource_id = (known after apply) + response_models = { + "application/json" = "Empty" } + response_parameters = { + "method.response.header.Access-Control-Allow-Headers" = true + "method.response.header.Access-Control-Allow-Methods" = true + "method.response.header.Access-Control-Allow-Origin" = true + "method.response.header.Access-Control-Max-Age" = true } + rest_api_id = (known after apply) + status_code = "200" } Plan: 27 to add, 0 to change, 0 to destroy. Changes to Outputs: + register_table = "mtchoun-mouh-add-demo-page-again-Register" + stage_url = (known after apply) + website_url = (known after apply) ------------------------------------------------------------------------ Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$1.872 ------------------------------------------------------------------------ aws_cloudwatch_event_rule.scheduler: Creating... aws_lambda_layer_version.test_lambda_layer: Creating... aws_api_gateway_rest_api.api: Creating... aws_dynamodb_table.Register: Creating... aws_dynamodb_table.Link_table: Creating... aws_dynamodb_table.Users: Creating... aws_lambda_function.scan: Creating... aws_s3_bucket.images: Creating... aws_s3_bucket.website: Creating... aws_cloudwatch_event_rule.scheduler: Creation complete after 2s [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] aws_api_gateway_rest_api.api: Creation complete after 2s [id=z8tkl1p2bi] aws_api_gateway_resource.resource: Creating... aws_api_gateway_resource.resource: Creation complete after 0s [id=nkjsmo] aws_api_gateway_method.method: Creating... module.cors.aws_api_gateway_method._: Creating... module.cors.aws_api_gateway_method._: Creation complete after 1s [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] module.cors.aws_api_gateway_method_response._: Creating... module.cors.aws_api_gateway_integration._: Creating... aws_api_gateway_method.method: Creation complete after 1s [id=agm-z8tkl1p2bi-nkjsmo-POST] aws_api_gateway_method_response.method_response_200: Creating... module.cors.aws_api_gateway_method_response._: Creation complete after 0s [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] module.cors.aws_api_gateway_integration._: Creation complete after 0s [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] module.cors.aws_api_gateway_integration_response._: Creating... aws_api_gateway_method_response.method_response_200: Creation complete after 0s [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] module.cors.aws_api_gateway_integration_response._: Creation complete after 1s [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_s3_bucket.images: Creation complete after 7s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_lambda_function.scan: Creation complete after 7s [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Creating... aws_cloudwatch_event_target.target: Creating... aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Creation complete after 1s [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Creation complete after 1s [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] aws_s3_bucket.website: Creation complete after 8s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_public_access_block.website: Creating... aws_s3_bucket_public_access_block.website: Creation complete after 1s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_policy.website: Creating... aws_dynamodb_table.Users: Creation complete after 10s [id=mtchoun-mouh-add-demo-page-again-Users] aws_dynamodb_table.Link_table: Creation complete after 10s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_dynamodb_table.Register: Creation complete after 10s [id=mtchoun-mouh-add-demo-page-again-Register] aws_s3_bucket_policy.website: Creation complete after 1s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_lambda_layer_version.test_lambda_layer: Still creating... [10s elapsed] aws_lambda_layer_version.test_lambda_layer: Creation complete after 12s [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_lambda_function.lambda: Creating... aws_lambda_function.lambda: Creation complete after 8s [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_lambda_permission.apigw_lambda: Creating... aws_api_gateway_integration.integration: Creating... aws_api_gateway_integration.integration: Creation complete after 1s [id=agi-z8tkl1p2bi-nkjsmo-POST] aws_api_gateway_deployment.test: Creating... aws_lambda_permission.apigw_lambda: Creation complete after 1s [id=AllowExecutionFromAPIGateway] aws_api_gateway_deployment.test: Creation complete after 1s [id=sn0542] local_file.demo_page: Creating... local_file.index_page: Creating... local_file.demo_page: Creation complete after 0s [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_object.example_file: Creating... aws_s3_bucket_object.example_file: Creation complete after 1s [id=index.html] Apply complete! Resources: 27 added, 0 changed, 0 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```
billmetangmo commented 2 months ago

Plan Result

CI link

:warning: Resource Deletion will happen

This plan contains resource delete operation. Please check the plan result very carefully!

Plan: 4 to add, 3 to change, 1 to destroy.
Change Result (Click me) ```hcl # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # aws_s3_bucket_object.demo_page will be created + resource "aws_s3_bucket_object" "demo_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "demo.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/demo.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # aws_s3_bucket_object.example_file will be destroyed # (because aws_s3_bucket_object.example_file is not in configuration) - resource "aws_s3_bucket_object" "example_file" { - acl = "private" -> null - bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" -> null - bucket_key_enabled = false -> null - content_type = "text/html" -> null - etag = "5d15ee752f1eb22f2f94ae4109d23547" -> null - force_destroy = false -> null - id = "index.html" -> null - key = "index.html" -> null - server_side_encryption = "AES256" -> null - source = "../html/index.html" -> null - storage_class = "STANDARD" -> null - tags_all = {} -> null # (9 unchanged attributes hidden) } # aws_s3_bucket_object.index_page will be created + resource "aws_s3_bucket_object" "index_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "index.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/index.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 4 to add, 3 to change, 1 to destroy. ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 4 added, 3 changed, 1 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-kYaw6fWtYbmZcch2 Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 0s [id=2ada4151693f1acad125a1a8fd09398912ad8f31] data.aws_caller_identity.current: Reading... aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] aws_s3_bucket_object.example_file: Refreshing state... [id=index.html] data.aws_iam_role.role: Reading... aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Users] aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Register] aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-djansang] data.aws_caller_identity.current: Read complete after 0s [id=053932140667] aws_api_gateway_rest_api.api: Refreshing state... [id=z8tkl1p2bi] data.aws_iam_role.role: Read complete after 0s [id=website-deployer] aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_api_gateway_resource.resource: Refreshing state... [id=nkjsmo] aws_api_gateway_method.method: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway] aws_api_gateway_integration.integration: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_api_gateway_deployment.test: Refreshing state... [id=sn0542] local_file.demo_page: Refreshing state... [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Refreshing state... [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place - destroy Terraform will perform the following actions: # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # aws_s3_bucket_object.demo_page will be created + resource "aws_s3_bucket_object" "demo_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "demo.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/demo.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # aws_s3_bucket_object.example_file will be destroyed # (because aws_s3_bucket_object.example_file is not in configuration) - resource "aws_s3_bucket_object" "example_file" { - acl = "private" -> null - bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" -> null - bucket_key_enabled = false -> null - content_type = "text/html" -> null - etag = "5d15ee752f1eb22f2f94ae4109d23547" -> null - force_destroy = false -> null - id = "index.html" -> null - key = "index.html" -> null - server_side_encryption = "AES256" -> null - source = "../html/index.html" -> null - storage_class = "STANDARD" -> null - tags_all = {} -> null # (9 unchanged attributes hidden) } # aws_s3_bucket_object.index_page will be created + resource "aws_s3_bucket_object" "index_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "index.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/index.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 4 to add, 3 to change, 1 to destroy. ------------------------------------------------------------------------ Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$0.7488 ------------------------------------------------------------------------ aws_s3_bucket_object.example_file: Destroying... [id=index.html] aws_dynamodb_table.Link_table: Modifying... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-add-demo-page-again-djansang] local_file.demo_page: Creating... local_file.demo_page: Creation complete after 0s [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] aws_s3_bucket_object.example_file: Destruction complete after 0s local_file.index_page: Creating... aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_dynamodb_table.Link_table: Modifications complete after 1s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifications complete after 6s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.index_page: Creating... aws_s3_bucket_object.demo_page: Creating... aws_s3_bucket_object.index_page: Creation complete after 1s [id=index.html] aws_s3_bucket_object.demo_page: Creation complete after 1s [id=demo.html] Apply complete! Resources: 4 added, 3 changed, 1 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```
billmetangmo commented 2 months ago

Plan Result

CI link

Plan: 3 to add, 3 to change, 0 to destroy.
Change Result (Click me) ```hcl # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # aws_s3_bucket_object.demo_page will be created + resource "aws_s3_bucket_object" "demo_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "demo.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/demo.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 3 to add, 3 to change, 0 to destroy. ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 3 added, 3 changed, 0 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-7ZCnV2RatNZkm6zg Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 0s [id=2ada4151693f1acad125a1a8fd09398912ad8f31] data.aws_iam_role.role: Reading... data.aws_caller_identity.current: Reading... aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Register] aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Users] aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_api_gateway_rest_api.api: Refreshing state... [id=z8tkl1p2bi] aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] data.aws_caller_identity.current: Read complete after 0s [id=053932140667] data.aws_iam_role.role: Read complete after 0s [id=website-deployer] aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_api_gateway_resource.resource: Refreshing state... [id=nkjsmo] module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] aws_api_gateway_method.method: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-POST] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway] aws_api_gateway_integration.integration: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_api_gateway_deployment.test: Refreshing state... [id=sn0542] local_file.demo_page: Refreshing state... [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Refreshing state... [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.index_page: Refreshing state... [id=index.html] aws_s3_bucket_object.demo_page: Refreshing state... [id=demo.html] aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place Terraform will perform the following actions: # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # aws_s3_bucket_object.demo_page will be created + resource "aws_s3_bucket_object" "demo_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "demo.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/demo.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 3 to add, 3 to change, 0 to destroy. ------------------------------------------------------------------------ Cost estimation: Waiting for cost estimate to complete... Cost estimation: Waiting for cost estimate to complete... (30s elapsed) Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$0.7488 ------------------------------------------------------------------------ aws_dynamodb_table.Link_table: Modifying... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] local_file.demo_page: Creating... local_file.index_page: Creating... local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] local_file.demo_page: Creation complete after 0s [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] aws_dynamodb_table.Link_table: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.demo_page: Creating... aws_s3_bucket_object.demo_page: Creation complete after 1s [id=demo.html] Apply complete! Resources: 3 added, 3 changed, 0 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```
billmetangmo commented 2 months ago

Plan Result

CI link

Plan: 4 to add, 3 to change, 0 to destroy.
Change Result (Click me) ```hcl # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # aws_s3_bucket_object.demo_page will be created + resource "aws_s3_bucket_object" "demo_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "demo.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/demo.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # aws_s3_bucket_object.index_page will be created + resource "aws_s3_bucket_object" "index_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "index.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/index.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 4 to add, 3 to change, 0 to destroy. ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 4 added, 3 changed, 0 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-RNb8CbJ2XKZHTq1P Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 1s [id=2ada4151693f1acad125a1a8fd09398912ad8f31] data.aws_iam_role.role: Reading... data.aws_caller_identity.current: Reading... aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Users] aws_api_gateway_rest_api.api: Refreshing state... [id=z8tkl1p2bi] aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Register] aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-djansang] data.aws_caller_identity.current: Read complete after 0s [id=053932140667] data.aws_iam_role.role: Read complete after 0s [id=website-deployer] aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_api_gateway_resource.resource: Refreshing state... [id=nkjsmo] aws_api_gateway_method.method: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] aws_api_gateway_integration.integration: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-POST] aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway] module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_api_gateway_deployment.test: Refreshing state... [id=sn0542] local_file.demo_page: Refreshing state... [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Refreshing state... [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.index_page: Refreshing state... [id=index.html] aws_s3_bucket_object.demo_page: Refreshing state... [id=demo.html] aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place Terraform will perform the following actions: # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # aws_s3_bucket_object.demo_page will be created + resource "aws_s3_bucket_object" "demo_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "demo.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/demo.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # aws_s3_bucket_object.index_page will be created + resource "aws_s3_bucket_object" "index_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "index.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/index.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 4 to add, 3 to change, 0 to destroy. ------------------------------------------------------------------------ Cost estimation: Waiting for cost estimate to complete... Cost estimation: Waiting for cost estimate to complete... (30s elapsed) Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$0.7488 ------------------------------------------------------------------------ aws_dynamodb_table.Link_table: Modifying... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] local_file.index_page: Creating... local_file.demo_page: Creating... local_file.demo_page: Creation complete after 0s [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_dynamodb_table.Link_table: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifications complete after 6s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.index_page: Creating... aws_s3_bucket_object.demo_page: Creating... aws_s3_bucket_object.demo_page: Creation complete after 1s [id=demo.html] aws_s3_bucket_object.index_page: Creation complete after 1s [id=index.html] Apply complete! Resources: 4 added, 3 changed, 0 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```
billmetangmo commented 2 months ago

Plan Result

CI link

Plan: 3 to add, 3 to change, 0 to destroy.
Change Result (Click me) ```hcl # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # aws_s3_bucket_object.demo_page will be created + resource "aws_s3_bucket_object" "demo_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "demo.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/demo.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 3 to add, 3 to change, 0 to destroy. ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 3 added, 3 changed, 0 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-tFrbabzfJWT1cRwf Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 0s [id=2ada4151693f1acad125a1a8fd09398912ad8f31] data.aws_caller_identity.current: Reading... aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Users] aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_api_gateway_rest_api.api: Refreshing state... [id=z8tkl1p2bi] data.aws_iam_role.role: Reading... aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Register] aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-djansang] data.aws_caller_identity.current: Read complete after 0s [id=053932140667] data.aws_iam_role.role: Read complete after 0s [id=website-deployer] aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_api_gateway_resource.resource: Refreshing state... [id=nkjsmo] aws_api_gateway_method.method: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway] aws_api_gateway_integration.integration: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_api_gateway_deployment.test: Refreshing state... [id=sn0542] local_file.demo_page: Refreshing state... [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Refreshing state... [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.index_page: Refreshing state... [id=index.html] aws_s3_bucket_object.demo_page: Refreshing state... [id=demo.html] aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place Terraform will perform the following actions: # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # aws_s3_bucket_object.demo_page will be created + resource "aws_s3_bucket_object" "demo_page" { + acl = "private" + bucket = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" + bucket_key_enabled = (known after apply) + content_type = "text/html" + etag = (known after apply) + force_destroy = false + id = (known after apply) + key = "demo.html" + kms_key_id = (known after apply) + server_side_encryption = (known after apply) + source = "../html/demo.html" + storage_class = (known after apply) + tags_all = (known after apply) + version_id = (known after apply) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 3 to add, 3 to change, 0 to destroy. ------------------------------------------------------------------------ Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$0.7488 ------------------------------------------------------------------------ aws_dynamodb_table.Link_table: Modifying... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] local_file.demo_page: Creating... local_file.index_page: Creating... local_file.demo_page: Creation complete after 0s [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_dynamodb_table.Link_table: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifications complete after 6s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.demo_page: Creating... aws_s3_bucket_object.demo_page: Creation complete after 1s [id=demo.html] Apply complete! Resources: 3 added, 3 changed, 0 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```
billmetangmo commented 2 months ago

Plan Result

CI link

Plan: 2 to add, 4 to change, 0 to destroy.
Change Result (Click me) ```hcl # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ layers = [ + "arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8", ] tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (24 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 4 to change, 0 to destroy. ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 2 added, 4 changed, 0 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-vq8THkZRFgJhT5JZ Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 0s [id=2ada4151693f1acad125a1a8fd09398912ad8f31] aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Users] aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Register] data.aws_caller_identity.current: Reading... aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] data.aws_iam_role.role: Reading... aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_api_gateway_rest_api.api: Refreshing state... [id=z8tkl1p2bi] aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-djansang] data.aws_caller_identity.current: Read complete after 0s [id=053932140667] data.aws_iam_role.role: Read complete after 0s [id=website-deployer] aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_api_gateway_resource.resource: Refreshing state... [id=nkjsmo] aws_api_gateway_method.method: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway] aws_api_gateway_integration.integration: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-POST] aws_api_gateway_deployment.test: Refreshing state... [id=sn0542] module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] local_file.demo_page: Refreshing state... [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Refreshing state... [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.demo_page: Refreshing state... [id=demo.html] aws_s3_bucket_object.index_page: Refreshing state... [id=index.html] aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place Terraform will perform the following actions: # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ layers = [ + "arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8", ] tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (24 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 4 to change, 0 to destroy. ------------------------------------------------------------------------ Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$0.7488 ------------------------------------------------------------------------ aws_dynamodb_table.Link_table: Modifying... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_lambda_function.scan: Modifying... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-add-demo-page-again-djansang] local_file.index_page: Creating... local_file.demo_page: Creating... local_file.demo_page: Creation complete after 0s [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_dynamodb_table.Link_table: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifications complete after 6s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifications complete after 6s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_lambda_function.scan: Modifications complete after 8s [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] Apply complete! Resources: 2 added, 4 changed, 0 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```
billmetangmo commented 2 months ago

Plan Result

CI link

Plan: 2 to add, 4 to change, 0 to destroy.
Change Result (Click me) ```hcl # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ last_modified = "2024-09-11T18:47:34.000+0000" -> (known after apply) ~ source_code_hash = "u/KPcTcH9R7C/1WGPNpMYe3smO5Xgd7M8oPtFZ5ID8I=" -> "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) ~ environment { ~ variables = { ~ "USERS_TABLE" = "Users" -> "mtchoun-mouh-add-demo-page-again-Users" # (8 unchanged elements hidden) } } # (1 unchanged block hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 4 to change, 0 to destroy. ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 2 added, 4 changed, 0 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-M56tXMrcuNs5eCpr Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 0s [id=2ada4151693f1acad125a1a8fd09398912ad8f31] data.aws_iam_role.role: Reading... aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Register] data.aws_caller_identity.current: Reading... aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_api_gateway_rest_api.api: Refreshing state... [id=z8tkl1p2bi] aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Users] data.aws_caller_identity.current: Read complete after 0s [id=053932140667] data.aws_iam_role.role: Read complete after 0s [id=website-deployer] aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_api_gateway_resource.resource: Refreshing state... [id=nkjsmo] aws_api_gateway_method.method: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway] aws_api_gateway_integration.integration: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_api_gateway_deployment.test: Refreshing state... [id=sn0542] local_file.demo_page: Refreshing state... [id=d0871231c2d53b36ac00ec30dc453f3866a44d4c] local_file.index_page: Refreshing state... [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_object.index_page: Refreshing state... [id=index.html] aws_s3_bucket_object.demo_page: Refreshing state... [id=demo.html] aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place Terraform will perform the following actions: # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ last_modified = "2024-09-11T18:47:34.000+0000" -> (known after apply) ~ source_code_hash = "u/KPcTcH9R7C/1WGPNpMYe3smO5Xgd7M8oPtFZ5ID8I=" -> "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) ~ environment { ~ variables = { ~ "USERS_TABLE" = "Users" -> "mtchoun-mouh-add-demo-page-again-Users" # (8 unchanged elements hidden) } } # (1 unchanged block hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 4 to change, 0 to destroy. ------------------------------------------------------------------------ Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$0.7488 ------------------------------------------------------------------------ aws_dynamodb_table.Link_table: Modifying... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_lambda_function.scan: Modifying... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] local_file.demo_page: Creating... local_file.index_page: Creating... local_file.demo_page: Creation complete after 0s [id=af60abe9a287805fcfc57149f3b455f948b954f3] local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_dynamodb_table.Link_table: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_lambda_function.scan: Modifications complete after 7s [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] Apply complete! Resources: 2 added, 4 changed, 0 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```
billmetangmo commented 2 months ago

Plan Result

CI link

Plan: 2 to add, 5 to change, 0 to destroy.
Change Result (Click me) ```hcl # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.lambda will be updated in-place ~ resource "aws_lambda_function" "lambda" { id = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" ~ last_modified = "2024-09-11T13:18:20.431+0000" -> (known after apply) ~ source_code_hash = "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" -> "7nQ+fera11kDUTH7do9BXFm/WBjUDxVAvcgpgaa7sho=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ last_modified = "2024-09-11T19:49:09.000+0000" -> (known after apply) ~ source_code_hash = "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" -> "7nQ+fera11kDUTH7do9BXFm/WBjUDxVAvcgpgaa7sho=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 5 to change, 0 to destroy. ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 2 added, 5 changed, 0 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-V5w4kkaPXD8GU1a7 Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 0s [id=860d04cbb60b2658b3385f99186db9d37d5eea24] data.aws_iam_role.role: Reading... data.aws_caller_identity.current: Reading... aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] aws_api_gateway_rest_api.api: Refreshing state... [id=z8tkl1p2bi] aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Users] aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Register] aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] data.aws_caller_identity.current: Read complete after 0s [id=053932140667] data.aws_iam_role.role: Read complete after 0s [id=website-deployer] aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_api_gateway_resource.resource: Refreshing state... [id=nkjsmo] aws_api_gateway_method.method: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway] aws_api_gateway_integration.integration: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] aws_api_gateway_deployment.test: Refreshing state... [id=sn0542] local_file.demo_page: Refreshing state... [id=af60abe9a287805fcfc57149f3b455f948b954f3] local_file.index_page: Refreshing state... [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.demo_page: Refreshing state... [id=demo.html] aws_s3_bucket_object.index_page: Refreshing state... [id=index.html] aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place Terraform will perform the following actions: # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.lambda will be updated in-place ~ resource "aws_lambda_function" "lambda" { id = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" ~ last_modified = "2024-09-11T13:18:20.431+0000" -> (known after apply) ~ source_code_hash = "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" -> "7nQ+fera11kDUTH7do9BXFm/WBjUDxVAvcgpgaa7sho=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ last_modified = "2024-09-11T19:49:09.000+0000" -> (known after apply) ~ source_code_hash = "tuhLhds4xGDVEbFq4I7/sMEANrz0Ke/A6GJ247L0tNA=" -> "7nQ+fera11kDUTH7do9BXFm/WBjUDxVAvcgpgaa7sho=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 5 to change, 0 to destroy. ------------------------------------------------------------------------ Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$0.7488 ------------------------------------------------------------------------ aws_lambda_function.scan: Modifying... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_lambda_function.lambda: Modifying... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_dynamodb_table.Link_table: Modifying... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_lambda_function.scan: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_dynamodb_table.Link_table: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_lambda_function.lambda: Modifications complete after 3s [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] local_file.demo_page: Creating... local_file.index_page: Creating... local_file.demo_page: Creation complete after 0s [id=af60abe9a287805fcfc57149f3b455f948b954f3] local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket.images: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Apply complete! Resources: 2 added, 5 changed, 0 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```
billmetangmo commented 2 months ago

Plan Result

CI link

Plan: 2 to add, 5 to change, 0 to destroy.
Change Result (Click me) ```hcl # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.lambda will be updated in-place ~ resource "aws_lambda_function" "lambda" { id = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" ~ last_modified = "2024-09-19T22:28:48.000+0000" -> (known after apply) ~ source_code_hash = "7nQ+fera11kDUTH7do9BXFm/WBjUDxVAvcgpgaa7sho=" -> "vEHIvnJ6JkBZZNhu8iRJEJ4jYCKExHplY/V5RK6/3sM=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ last_modified = "2024-09-19T22:28:46.000+0000" -> (known after apply) ~ source_code_hash = "7nQ+fera11kDUTH7do9BXFm/WBjUDxVAvcgpgaa7sho=" -> "vEHIvnJ6JkBZZNhu8iRJEJ4jYCKExHplY/V5RK6/3sM=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 5 to change, 0 to destroy. ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 2 added, 5 changed, 0 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-GhgNdKyza1PbAVfj Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 0s [id=da8608fce66497f2a6cf4aa1b7fce4fb8f1b4f56] aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Register] data.aws_iam_role.role: Reading... aws_api_gateway_rest_api.api: Refreshing state... [id=z8tkl1p2bi] aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Users] aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] data.aws_caller_identity.current: Reading... data.aws_caller_identity.current: Read complete after 0s [id=053932140667] data.aws_iam_role.role: Read complete after 1s [id=website-deployer] aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_api_gateway_resource.resource: Refreshing state... [id=nkjsmo] module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] aws_api_gateway_method.method: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-POST] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway] aws_api_gateway_integration.integration: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] aws_api_gateway_deployment.test: Refreshing state... [id=sn0542] module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] local_file.demo_page: Refreshing state... [id=af60abe9a287805fcfc57149f3b455f948b954f3] local_file.index_page: Refreshing state... [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.index_page: Refreshing state... [id=index.html] aws_s3_bucket_object.demo_page: Refreshing state... [id=demo.html] aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place Terraform will perform the following actions: # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.lambda will be updated in-place ~ resource "aws_lambda_function" "lambda" { id = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" ~ last_modified = "2024-09-19T22:28:48.000+0000" -> (known after apply) ~ source_code_hash = "7nQ+fera11kDUTH7do9BXFm/WBjUDxVAvcgpgaa7sho=" -> "vEHIvnJ6JkBZZNhu8iRJEJ4jYCKExHplY/V5RK6/3sM=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ last_modified = "2024-09-19T22:28:46.000+0000" -> (known after apply) ~ source_code_hash = "7nQ+fera11kDUTH7do9BXFm/WBjUDxVAvcgpgaa7sho=" -> "vEHIvnJ6JkBZZNhu8iRJEJ4jYCKExHplY/V5RK6/3sM=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 5 to change, 0 to destroy. ------------------------------------------------------------------------ Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$0.7488 ------------------------------------------------------------------------ aws_dynamodb_table.Link_table: Modifying... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_lambda_function.lambda: Modifying... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_lambda_function.scan: Modifying... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_lambda_function.lambda: Modifications complete after 1s [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] local_file.demo_page: Creating... local_file.index_page: Creating... local_file.demo_page: Creation complete after 0s [id=af60abe9a287805fcfc57149f3b455f948b954f3] local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_dynamodb_table.Link_table: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_lambda_function.scan: Modifications complete after 3s [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_s3_bucket.images: Modifications complete after 4s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Apply complete! Resources: 2 added, 5 changed, 0 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```
github-actions[bot] commented 2 months ago

💰 Infracost report

Monthly estimate generated

This comment will be updated when code changes.

billmetangmo commented 2 months ago

Plan Result

CI link

Plan: 2 to add, 5 to change, 0 to destroy.
Change Result (Click me) ```hcl # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.lambda will be updated in-place ~ resource "aws_lambda_function" "lambda" { id = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" ~ last_modified = "2024-09-19T22:39:24.000+0000" -> (known after apply) ~ source_code_hash = "vEHIvnJ6JkBZZNhu8iRJEJ4jYCKExHplY/V5RK6/3sM=" -> "NoXwgOVBaumiJ/9+PhiC+JwCPedgCN2SGDE9uwCVUa0=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ last_modified = "2024-09-19T22:39:26.000+0000" -> (known after apply) ~ source_code_hash = "vEHIvnJ6JkBZZNhu8iRJEJ4jYCKExHplY/V5RK6/3sM=" -> "NoXwgOVBaumiJ/9+PhiC+JwCPedgCN2SGDE9uwCVUa0=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 5 to change, 0 to destroy. ```
billmetangmo commented 2 months ago

:white_check_mark: Apply Succeeded

CI link

Apply complete! Resources: 2 added, 5 changed, 0 destroyed.
Details (Click me) ```hcl Running apply in the remote backend. Output will stream here. Pressing Ctrl-C will cancel the remote apply if it's still pending. If the apply started it will stop streaming the logs, but will not stop the apply running remotely. Preparing the remote apply... To view this run in a browser, visit: https://app.terraform.io/app/tfc-mongulu-cm/mtchoun-mouh-add-demo-page-again/runs/run-HLe4TazXWgPyGCt3 Waiting for the plan to start... Terraform v1.9.5 on linux_amd64 Initializing plugins and modules... data.archive_file.lambda_zip: Reading... data.archive_file.lambda_zip: Read complete after 0s [id=48df1bd00fcd454af40e67c63b1b00b36d06933e] data.aws_caller_identity.current: Reading... aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan] data.aws_iam_role.role: Reading... aws_api_gateway_rest_api.api: Refreshing state... [id=z8tkl1p2bi] aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:8] aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Register] aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-Users] data.aws_caller_identity.current: Read complete after 0s [id=053932140667] data.aws_iam_role.role: Read complete after 0s [id=website-deployer] aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_api_gateway_resource.resource: Refreshing state... [id=nkjsmo] aws_api_gateway_method.method: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-POST] module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-z8tkl1p2bi-nkjsmo-OPTIONS] aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-POST-200] aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway] aws_api_gateway_integration.integration: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-POST] aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch] aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-trigger_user_scan-lambda] module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-z8tkl1p2bi-nkjsmo-OPTIONS-200] module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-z8tkl1p2bi-nkjsmo-OPTIONS] aws_api_gateway_deployment.test: Refreshing state... [id=sn0542] module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-z8tkl1p2bi-nkjsmo-OPTIONS-200] local_file.demo_page: Refreshing state... [id=af60abe9a287805fcfc57149f3b455f948b954f3] local_file.index_page: Refreshing state... [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_s3_bucket_object.index_page: Refreshing state... [id=index.html] aws_s3_bucket_object.demo_page: Refreshing state... [id=demo.html] aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place Terraform will perform the following actions: # aws_dynamodb_table.Link_table will be updated in-place ~ resource "aws_dynamodb_table" "Link_table" { id = "mtchoun-mouh-add-demo-page-again-Link_table" name = "mtchoun-mouh-add-demo-page-again-Link_table" ~ read_capacity = 0 -> 3 tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } ~ write_capacity = 0 -> 1 # (8 unchanged attributes hidden) # (3 unchanged blocks hidden) } # aws_lambda_function.lambda will be updated in-place ~ resource "aws_lambda_function" "lambda" { id = "mtchoun-mouh-add-demo-page-again-user_registration_consulcam" ~ last_modified = "2024-09-19T22:39:24.000+0000" -> (known after apply) ~ source_code_hash = "vEHIvnJ6JkBZZNhu8iRJEJ4jYCKExHplY/V5RK6/3sM=" -> "NoXwgOVBaumiJ/9+PhiC+JwCPedgCN2SGDE9uwCVUa0=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_lambda_function.scan will be updated in-place ~ resource "aws_lambda_function" "scan" { id = "mtchoun-mouh-add-demo-page-again-scan_user_consulcam" ~ last_modified = "2024-09-19T22:39:26.000+0000" -> (known after apply) ~ source_code_hash = "vEHIvnJ6JkBZZNhu8iRJEJ4jYCKExHplY/V5RK6/3sM=" -> "NoXwgOVBaumiJ/9+PhiC+JwCPedgCN2SGDE9uwCVUa0=" tags = { "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (23 unchanged attributes hidden) # (2 unchanged blocks hidden) } # aws_s3_bucket.images will be updated in-place ~ resource "aws_s3_bucket" "images" { id = "mtchoun-mouh-add-demo-page-again-djansang" tags = { "Name" = "images" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (11 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (1 unchanged block hidden) } # aws_s3_bucket.website will be updated in-place ~ resource "aws_s3_bucket" "website" { id = "mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm" tags = { "Name" = "Website" "environment" = "mtchoun-mouh-master" "project" = "mtchoun-mouh" } # (13 unchanged attributes hidden) - server_side_encryption_configuration { - rule { - bucket_key_enabled = false -> null - apply_server_side_encryption_by_default { - sse_algorithm = "AES256" -> null # (1 unchanged attribute hidden) } } } # (3 unchanged blocks hidden) } # local_file.demo_page will be created + resource "local_file" "demo_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/demo.html" + id = (known after apply) } # local_file.index_page will be created + resource "local_file" "index_page" { + content = (sensitive value) + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "../html/index.html" + id = (known after apply) } Plan: 2 to add, 5 to change, 0 to destroy. ------------------------------------------------------------------------ Cost estimation: Resources: 3 of 6 estimated $1.872/mo +$0.7488 ------------------------------------------------------------------------ aws_dynamodb_table.Link_table: Modifying... [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-add-demo-page-again-djansang] aws_lambda_function.lambda: Modifying... [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] aws_lambda_function.scan: Modifying... [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] aws_lambda_function.scan: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-scan_user_consulcam] aws_dynamodb_table.Link_table: Modifications complete after 2s [id=mtchoun-mouh-add-demo-page-again-Link_table] aws_lambda_function.lambda: Modifications complete after 3s [id=mtchoun-mouh-add-demo-page-again-user_registration_consulcam] local_file.demo_page: Creating... local_file.index_page: Creating... local_file.demo_page: Creation complete after 0s [id=af60abe9a287805fcfc57149f3b455f948b954f3] local_file.index_page: Creation complete after 0s [id=8b382bcbb2ec74d2beda1c85ee5feb17a355c26d] aws_s3_bucket.images: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-djansang] aws_s3_bucket.website: Modifications complete after 5s [id=mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm] Apply complete! Resources: 2 added, 5 changed, 0 destroyed. Outputs: register_table = "mtchoun-mouh-add-demo-page-again-Register" stage_url = "https://z8tkl1p2bi.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-add-demo-page-again-dev" website_url = "http://mtchoun-mouh-add-demo-page-again-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com" ```