-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix python version #195
Merged
Merged
Fix python version #195
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
💰 Infracost reportMonthly estimate generatedThis comment will be updated when code changes. |
💰 Infracost reportMonthly estimate generatedThis comment will be updated when code changes. |
billmetangmo
force-pushed
the
fix-python-version
branch
2 times, most recently
from
September 20, 2024 13:56
a58f7c0
to
f22b6a5
Compare
❌ Plan Failed
|
❌ Plan Failed
|
❌ Plan Failed
|
Plan Result
Change Result (Click me) # 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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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 = "aG/693OgtesclFbtQG3JpowPoOxVEki6ETbi5wlrhnw="
+ 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-fix-python-version-djansang"
+ "ENV" = "mtchoun-mouh-fix-python-version"
+ "LINKS_TABLE" = "mtchoun-mouh-fix-python-version-Link_table"
+ "MAINTAINER_MAIL" = (sensitive value)
+ "REGION" = "eu-central-1"
+ "REGISTERS_TABLE" = "mtchoun-mouh-fix-python-version-Register"
+ "SENTRY_DNS" = (sensitive value)
+ "USERS_TABLE" = "mtchoun-mouh-fix-python-version-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-fix-python-version-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 = "aG/693OgtesclFbtQG3JpowPoOxVEki6ETbi5wlrhnw="
+ 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-fix-python-version-djansang"
+ "ENV" = "mtchoun-mouh-fix-python-version"
+ "LINKS_TABLE" = "mtchoun-mouh-fix-python-version-Link_table"
+ "MAINTAINER_MAIL" = (sensitive value)
+ "REGION" = "eu-central-1"
+ "REGISTERS_TABLE" = "mtchoun-mouh-fix-python-version-Register"
+ "SENTRY_DNS" = (sensitive value)
+ "USERS_TABLE" = "mtchoun-mouh-fix-python-version-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.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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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.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: 26 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ register_table = "mtchoun-mouh-fix-python-version-Register"
+ stage_url = (known after apply)
+ website_url = (known after apply) |
✅ Apply Succeeded
Details (Click me)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-fix-python-version/runs/run-UWaVAoGY1hRmp4Mh
Waiting for the plan to start...
Terraform v1.9.6
on linux_amd64
Initializing plugins and modules...
data.archive_file.lambda_zip: Reading...
data.archive_file.lambda_zip: Read complete after 0s [id=a302387976ce74579a87a903dcc6149f70895053]
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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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 = "aG/693OgtesclFbtQG3JpowPoOxVEki6ETbi5wlrhnw="
+ 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-fix-python-version-djansang"
+ "ENV" = "mtchoun-mouh-fix-python-version"
+ "LINKS_TABLE" = "mtchoun-mouh-fix-python-version-Link_table"
+ "MAINTAINER_MAIL" = (sensitive value)
+ "REGION" = "eu-central-1"
+ "REGISTERS_TABLE" = "mtchoun-mouh-fix-python-version-Register"
+ "SENTRY_DNS" = (sensitive value)
+ "USERS_TABLE" = "mtchoun-mouh-fix-python-version-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-fix-python-version-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 = "aG/693OgtesclFbtQG3JpowPoOxVEki6ETbi5wlrhnw="
+ 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-fix-python-version-djansang"
+ "ENV" = "mtchoun-mouh-fix-python-version"
+ "LINKS_TABLE" = "mtchoun-mouh-fix-python-version-Link_table"
+ "MAINTAINER_MAIL" = (sensitive value)
+ "REGION" = "eu-central-1"
+ "REGISTERS_TABLE" = "mtchoun-mouh-fix-python-version-Register"
+ "SENTRY_DNS" = (sensitive value)
+ "USERS_TABLE" = "mtchoun-mouh-fix-python-version-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.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-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-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.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: 26 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ register_table = "mtchoun-mouh-fix-python-version-Register"
+ stage_url = (known after apply)
+ website_url = (known after apply)
------------------------------------------------------------------------
Cost estimation:
Resources: 3 of 5 estimated
$1.872/mo +$1.872
------------------------------------------------------------------------
aws_cloudwatch_event_rule.scheduler: Creating...
aws_api_gateway_rest_api.api: Creating...
aws_lambda_layer_version.test_lambda_layer: Creating...
aws_dynamodb_table.Link_table: Creating...
aws_dynamodb_table.Users: Creating...
aws_dynamodb_table.Register: Creating...
aws_lambda_function.scan: Creating...
aws_s3_bucket.images: Creating...
aws_s3_bucket.website: Creating...
aws_cloudwatch_event_rule.scheduler: Creation complete after 1s [id=mtchoun-mouh-fix-python-version-trigger_user_scan]
aws_api_gateway_rest_api.api: Creation complete after 1s [id=ki5oyio7lg]
aws_api_gateway_resource.resource: Creating...
aws_api_gateway_resource.resource: Creation complete after 1s [id=86yb5q]
aws_api_gateway_method.method: Creating...
module.cors.aws_api_gateway_method._: Creating...
aws_api_gateway_method.method: Creation complete after 0s [id=agm-ki5oyio7lg-86yb5q-POST]
aws_api_gateway_method_response.method_response_200: Creating...
module.cors.aws_api_gateway_method._: Creation complete after 0s [id=agm-ki5oyio7lg-86yb5q-OPTIONS]
module.cors.aws_api_gateway_integration._: Creating...
module.cors.aws_api_gateway_method_response._: Creating...
aws_api_gateway_method_response.method_response_200: Creation complete after 0s [id=agmr-ki5oyio7lg-86yb5q-POST-200]
module.cors.aws_api_gateway_integration._: Creation complete after 1s [id=agi-ki5oyio7lg-86yb5q-OPTIONS]
module.cors.aws_api_gateway_method_response._: Creation complete after 1s [id=agmr-ki5oyio7lg-86yb5q-OPTIONS-200]
module.cors.aws_api_gateway_integration_response._: Creating...
module.cors.aws_api_gateway_integration_response._: Creation complete after 0s [id=agir-ki5oyio7lg-86yb5q-OPTIONS-200]
aws_dynamodb_table.Users: Creation complete after 6s [id=mtchoun-mouh-fix-python-version-Users]
aws_s3_bucket.images: Creation complete after 6s [id=mtchoun-mouh-fix-python-version-djansang]
aws_dynamodb_table.Register: Creation complete after 6s [id=mtchoun-mouh-fix-python-version-Register]
aws_dynamodb_table.Link_table: Creation complete after 6s [id=mtchoun-mouh-fix-python-version-Link_table]
aws_lambda_function.scan: Creation complete after 7s [id=mtchoun-mouh-fix-python-version-scan_user_consulcam]
aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Creating...
aws_cloudwatch_event_target.target: Creating...
aws_s3_bucket.website: Creation complete after 7s [id=mtchoun-mouh-fix-python-version-mtchoun-mouh.mongulu.cm]
aws_s3_bucket_public_access_block.website: Creating...
aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Creation complete after 1s [id=AllowExecutionFromCloudWatch]
aws_lambda_layer_version.test_lambda_layer: Creation complete after 8s [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:10]
aws_lambda_function.lambda: Creating...
aws_cloudwatch_event_target.target: Creation complete after 1s [id=mtchoun-mouh-fix-python-version-trigger_user_scan-lambda]
aws_s3_bucket_public_access_block.website: Creation complete after 1s [id=mtchoun-mouh-fix-python-version-mtchoun-mouh.mongulu.cm]
aws_s3_bucket_policy.website: Creating...
aws_s3_bucket_policy.website: Creation complete after 0s [id=mtchoun-mouh-fix-python-version-mtchoun-mouh.mongulu.cm]
aws_lambda_function.lambda: Creation complete after 8s [id=mtchoun-mouh-fix-python-version-user_registration_consulcam]
aws_api_gateway_integration.integration: Creating...
aws_lambda_permission.apigw_lambda: Creating...
aws_api_gateway_integration.integration: Creation complete after 1s [id=agi-ki5oyio7lg-86yb5q-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=79x840]
local_file.index_page: Creating...
local_file.index_page: Creation complete after 0s [id=99969e9c3579612c7cd7b3197207c13574a11a5e]
aws_s3_bucket_object.example_file: Creating...
aws_s3_bucket_object.example_file: Creation complete after 1s [id=index.html]
Apply complete! Resources: 26 added, 0 changed, 0 destroyed.
Outputs:
register_table = "mtchoun-mouh-fix-python-version-Register"
stage_url = "https://ki5oyio7lg.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-fix-python-version-dev"
website_url = "http://mtchoun-mouh-fix-python-version-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com"
|
Plan Result
|
✅ Apply Succeeded
Details (Click me)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-fix-python-version/runs/run-vEzPBKJwNuAE6bNz
Waiting for the plan to start...
Terraform v1.9.6
on linux_amd64
Initializing plugins and modules...
data.archive_file.lambda_zip: Reading...
data.archive_file.lambda_zip: Read complete after 0s [id=623051e615259cbdddcff0797d5709f4a4b82142]
aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=mtchoun-mouh-fix-python-version-trigger_user_scan]
aws_lambda_layer_version.test_lambda_layer: Refreshing state... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:10]
aws_s3_bucket_object.example_file: Refreshing state... [id=index.html]
data.aws_iam_role.role: Reading...
data.aws_caller_identity.current: Reading...
aws_dynamodb_table.Register: Refreshing state... [id=mtchoun-mouh-fix-python-version-Register]
aws_dynamodb_table.Link_table: Refreshing state... [id=mtchoun-mouh-fix-python-version-Link_table]
aws_dynamodb_table.Users: Refreshing state... [id=mtchoun-mouh-fix-python-version-Users]
aws_s3_bucket.images: Refreshing state... [id=mtchoun-mouh-fix-python-version-djansang]
aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh-fix-python-version-mtchoun-mouh.mongulu.cm]
data.aws_caller_identity.current: Read complete after 1s [id=053932140667]
aws_api_gateway_rest_api.api: Refreshing state... [id=ki5oyio7lg]
data.aws_iam_role.role: Read complete after 1s [id=website-deployer]
aws_lambda_function.scan: Refreshing state... [id=mtchoun-mouh-fix-python-version-scan_user_consulcam]
aws_lambda_function.lambda: Refreshing state... [id=mtchoun-mouh-fix-python-version-user_registration_consulcam]
aws_api_gateway_resource.resource: Refreshing state... [id=86yb5q]
aws_api_gateway_method.method: Refreshing state... [id=agm-ki5oyio7lg-86yb5q-POST]
module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-ki5oyio7lg-86yb5q-OPTIONS]
module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-ki5oyio7lg-86yb5q-OPTIONS-200]
aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-ki5oyio7lg-86yb5q-POST-200]
module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-ki5oyio7lg-86yb5q-OPTIONS]
aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway]
aws_api_gateway_integration.integration: Refreshing state... [id=agi-ki5oyio7lg-86yb5q-POST]
aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch]
aws_cloudwatch_event_target.target: Refreshing state... [id=mtchoun-mouh-fix-python-version-trigger_user_scan-lambda]
aws_api_gateway_deployment.test: Refreshing state... [id=79x840]
module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-ki5oyio7lg-86yb5q-OPTIONS-200]
local_file.index_page: Refreshing state... [id=99969e9c3579612c7cd7b3197207c13574a11a5e]
aws_s3_bucket_public_access_block.website: Refreshing state... [id=mtchoun-mouh-fix-python-version-mtchoun-mouh.mongulu.cm]
aws_s3_bucket_policy.website: Refreshing state... [id=mtchoun-mouh-fix-python-version-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-fix-python-version-Link_table"
name = "mtchoun-mouh-fix-python-version-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-fix-python-version-user_registration_consulcam"
~ last_modified = "2024-11-28T21:13:07.060+0000" -> (known after apply)
~ source_code_hash = "aG/693OgtesclFbtQG3JpowPoOxVEki6ETbi5wlrhnw=" -> "otjxhkmYsItml++V4smRv3rYS0aVLmDqtbuWboPiD7U="
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-fix-python-version-scan_user_consulcam"
~ last_modified = "2024-11-28T21:12:59.223+0000" -> (known after apply)
~ layers = [
+ "arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:10",
]
~ source_code_hash = "aG/693OgtesclFbtQG3JpowPoOxVEki6ETbi5wlrhnw=" -> "otjxhkmYsItml++V4smRv3rYS0aVLmDqtbuWboPiD7U="
tags = {
"environment" = "mtchoun-mouh-master"
"project" = "mtchoun-mouh"
}
# (22 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# aws_s3_bucket.images will be updated in-place
~ resource "aws_s3_bucket" "images" {
id = "mtchoun-mouh-fix-python-version-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-fix-python-version-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-fix-python-version-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-fix-python-version-mtchoun-mouh.mongulu.cm" -> null
- bucket_key_enabled = false -> null
- content_type = "text/html" -> null
- etag = "15cb3e6c0d277ef3360ab9eb2a29e0f4" -> 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-fix-python-version-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, 5 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-fix-python-version-Link_table]
aws_lambda_function.scan: Modifying... [id=mtchoun-mouh-fix-python-version-scan_user_consulcam]
aws_s3_bucket.images: Modifying... [id=mtchoun-mouh-fix-python-version-djansang]
aws_s3_bucket_object.example_file: Destruction complete after 0s
aws_lambda_function.lambda: Modifying... [id=mtchoun-mouh-fix-python-version-user_registration_consulcam]
aws_s3_bucket.website: Modifying... [id=mtchoun-mouh-fix-python-version-mtchoun-mouh.mongulu.cm]
aws_dynamodb_table.Link_table: Modifications complete after 2s [id=mtchoun-mouh-fix-python-version-Link_table]
aws_lambda_function.lambda: Modifications complete after 2s [id=mtchoun-mouh-fix-python-version-user_registration_consulcam]
local_file.demo_page: Creating...
local_file.index_page: Creating...
local_file.demo_page: Creation complete after 0s [id=b30c73b5545e2a35a9650816309bf849784132c3]
local_file.index_page: Creation complete after 0s [id=99969e9c3579612c7cd7b3197207c13574a11a5e]
aws_s3_bucket.images: Modifications complete after 4s [id=mtchoun-mouh-fix-python-version-djansang]
aws_s3_bucket.website: Modifications complete after 5s [id=mtchoun-mouh-fix-python-version-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]
aws_lambda_function.scan: Modifications complete after 9s [id=mtchoun-mouh-fix-python-version-scan_user_consulcam]
Apply complete! Resources: 4 added, 5 changed, 1 destroyed.
Outputs:
register_table = "mtchoun-mouh-fix-python-version-Register"
stage_url = "https://ki5oyio7lg.execute-api.eu-central-1.amazonaws.com/mtchoun-mouh-fix-python-version-dev"
website_url = "http://mtchoun-mouh-fix-python-version-mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com"
|
Plan Result
|
✅ Apply Succeeded
Details (Click me)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-master/runs/run-oJi8mm9k75B5o4DP
Waiting for the plan to start...
Terraform v1.5.2
on linux_amd64
Initializing plugins and modules...
data.archive_file.lambda_zip: Reading...
data.archive_file.lambda_zip: Read complete after 0s [id=623051e615259cbdddcff0797d5709f4a4b82142]
data.aws_iam_role.role: Reading...
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:6]
aws_dynamodb_table.Register: Refreshing state... [id=Register]
aws_s3_bucket.images: Refreshing state... [id=djansang]
aws_api_gateway_rest_api.api: Refreshing state... [id=gozv19c3jf]
aws_cloudwatch_event_rule.scheduler: Refreshing state... [id=trigger_user_scan]
aws_dynamodb_table.Link_table: Refreshing state... [id=Link_table]
aws_s3_bucket.website: Refreshing state... [id=mtchoun-mouh.mongulu.cm]
aws_dynamodb_table.Users: Refreshing state... [id=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=user_registration_consulcam]
aws_lambda_function.scan: Refreshing state... [id=scan_user_consulcam]
aws_api_gateway_resource.resource: Refreshing state... [id=gtenoa]
aws_api_gateway_method.method: Refreshing state... [id=agm-gozv19c3jf-gtenoa-POST]
module.cors.aws_api_gateway_method._: Refreshing state... [id=agm-gozv19c3jf-gtenoa-OPTIONS]
module.cors.aws_api_gateway_method_response._: Refreshing state... [id=agmr-gozv19c3jf-gtenoa-OPTIONS-200]
module.cors.aws_api_gateway_integration._: Refreshing state... [id=agi-gozv19c3jf-gtenoa-OPTIONS]
aws_api_gateway_method_response.method_response_200: Refreshing state... [id=agmr-gozv19c3jf-gtenoa-POST-200]
aws_lambda_permission.apigw_lambda: Refreshing state... [id=AllowExecutionFromAPIGateway]
aws_api_gateway_integration.integration: Refreshing state... [id=agi-gozv19c3jf-gtenoa-POST]
aws_lambda_permission.allow_cloudwatch_to_call_check_foo: Refreshing state... [id=AllowExecutionFromCloudWatch]
aws_cloudwatch_event_target.target: Refreshing state... [id=trigger_user_scan-lambda]
module.cors.aws_api_gateway_integration_response._: Refreshing state... [id=agir-gozv19c3jf-gtenoa-OPTIONS-200]
aws_api_gateway_deployment.test: Refreshing state... [id=7suq19]
local_file.demo_page: Refreshing state... [id=b676c3d2c852b67560a461826a2c6b34aaf779ab]
local_file.index_page: Refreshing state... [id=c845316bee69b44546aed5f465d68859a00ebc56]
aws_s3_bucket_public_access_block.website: Refreshing state... [id=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.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 and then create replacement
Terraform will perform the following actions:
# aws_dynamodb_table.Link_table will be updated in-place
~ resource "aws_dynamodb_table" "Link_table" {
id = "Link_table"
name = "Link_table"
~ read_capacity = 0 -> 3
tags = {
"environment" = "mtchoun-mouh-master"
"project" = "mtchoun-mouh"
}
~ write_capacity = 0 -> 1
# (5 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# aws_lambda_function.lambda will be updated in-place
~ resource "aws_lambda_function" "lambda" {
id = "user_registration_consulcam"
~ layers = [
- "arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:6",
] -> (known after apply)
tags = {
"environment" = "mtchoun-mouh-master"
"project" = "mtchoun-mouh"
}
# (18 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# aws_lambda_function.scan will be updated in-place
~ resource "aws_lambda_function" "scan" {
id = "scan_user_consulcam"
~ layers = [
- "arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:6",
] -> (known after apply)
tags = {
"environment" = "mtchoun-mouh-master"
"project" = "mtchoun-mouh"
}
# (18 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# aws_lambda_layer_version.test_lambda_layer must be replaced
-/+ resource "aws_lambda_layer_version" "test_lambda_layer" {
~ arn = "arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:6" -> (known after apply)
~ compatible_runtimes = [ # forces replacement
- "python3.7",
# (1 unchanged element hidden)
]
~ created_date = "2024-08-30T14:35:27.663+0000" -> (known after apply)
~ id = "arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:6" -> (known after apply)
~ layer_arn = "arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer" -> (known after apply)
+ signing_job_arn = (known after apply)
+ signing_profile_version_arn = (known after apply)
~ source_code_hash = "omok6jlQ4kaPJ6wGGcFhL/PRmmolRf+6OVw6mwITX+w=" -> (known after apply)
~ source_code_size = 29433622 -> (known after apply)
~ version = "6" -> (known after apply)
# (2 unchanged attributes hidden)
}
# aws_s3_bucket.images will be updated in-place
~ resource "aws_s3_bucket" "images" {
id = "djansang"
tags = {
"Name" = "images"
"environment" = "mtchoun-mouh-master"
"project" = "mtchoun-mouh"
}
# (10 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 block hidden)
}
# aws_s3_bucket.website will be updated in-place
~ resource "aws_s3_bucket" "website" {
id = "mtchoun-mouh.mongulu.cm"
tags = {
"Name" = "Website"
"environment" = "mtchoun-mouh-master"
"project" = "mtchoun-mouh"
}
# (12 unchanged attributes hidden)
- server_side_encryption_configuration {
- rule {
- bucket_key_enabled = false -> null
- apply_server_side_encryption_by_default {
- sse_algorithm = "AES256" -> null
}
}
}
# (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.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: 4 to add, 5 to change, 1 to destroy.
------------------------------------------------------------------------
Cost estimation:
Resources: 3 of 6 estimated
$1.872/mo +$0.7488
------------------------------------------------------------------------
aws_lambda_layer_version.test_lambda_layer: Destroying... [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:6]
aws_dynamodb_table.Link_table: Modifying... [id=Link_table]
aws_s3_bucket.images: Modifying... [id=djansang]
aws_s3_bucket.website: Modifying... [id=mtchoun-mouh.mongulu.cm]
local_file.index_page: Creating...
local_file.demo_page: Creating...
local_file.index_page: Creation complete after 0s [id=c845316bee69b44546aed5f465d68859a00ebc56]
local_file.demo_page: Creation complete after 0s [id=b676c3d2c852b67560a461826a2c6b34aaf779ab]
aws_lambda_layer_version.test_lambda_layer: Destruction complete after 1s
aws_lambda_layer_version.test_lambda_layer: Creating...
aws_dynamodb_table.Link_table: Modifications complete after 2s [id=Link_table]
aws_s3_bucket.images: Modifications complete after 5s [id=djansang]
aws_s3_bucket.website: Modifications complete after 5s [id=mtchoun-mouh.mongulu.cm]
aws_s3_bucket_object.demo_page: Creating...
aws_s3_bucket_object.demo_page: Creation complete after 1s [id=demo.html]
aws_lambda_layer_version.test_lambda_layer: Creation complete after 8s [id=arn:aws:lambda:eu-central-1:053932140667:layer:test_lambda_layer:11]
aws_lambda_function.lambda: Modifying... [id=user_registration_consulcam]
aws_lambda_function.scan: Modifying... [id=scan_user_consulcam]
aws_lambda_function.scan: Modifications complete after 8s [id=scan_user_consulcam]
aws_lambda_function.lambda: Modifications complete after 8s [id=user_registration_consulcam]
Apply complete! Resources: 4 added, 5 changed, 1 destroyed.
Outputs:
register_table = "Register"
stage_url = "https://gozv19c3jf.execute-api.eu-central-1.amazonaws.com/dev"
website_url = "http://mtchoun-mouh.mongulu.cm.s3-website.eu-central-1.amazonaws.com"
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.