Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 4.83 KB

File metadata and controls

50 lines (43 loc) · 4.83 KB

codebuild

This module sets up the build to take a vanilla Wordpress image and bake customisations into it for Serverless Static Wordpress.

Inputs

Name Description Type Default Required
aws_account_id The AWS account ID into which resources will be launched. string n/a yes
codebuild_bucket The name of the bucket used for codebuild of the image. string n/a yes
container_memory The memory allocated to the container (in MB) number n/a yes
graviton_codebuild_enabled Flag that controls whether CodeBuild should use Graviton-based build agents in supported regions. bool false no
main_vpc_id The VPC ID into which to launch resources. string n/a yes
site_domain The site domain name to configure (without any subdomains such as 'www') string n/a yes
site_name The unique name for this instance of the module. Required to deploy multiple wordpress instances to the same AWS account (if desired). string n/a yes
wordpress_ecr_repository The ECR repository where the Wordpress image is stored. string n/a yes
wp2static_s3_addon_version Version of the WP2Static S3 Add-on to use from https://github.com/leonstafford/wp2static-addon-s3/releases/ string "1.0" no
wp2static_version Version of WP2Static to use from https://github.com/WP2Static/wp2static/releases string "7.1.7" no

Modules

No modules.

Outputs

Name Description
codebuild_package_etag The etag of the codebuild package file.
codebuild_project_name The name of the created Wordpress codebuild project.

Requirements

No requirements.

Resources

Name Type
aws_cloudwatch_log_group.wordpress_docker_build resource
aws_codebuild_project.wordpress_docker_build resource
aws_iam_role.codebuild_service_role resource
aws_iam_role_policy_attachment.codebuild_role_attachment resource
aws_s3_bucket.code_source resource
aws_s3_bucket_acl.code_source resource
aws_s3_bucket_public_access_block.code_source resource
aws_s3_bucket_server_side_encryption_configuration.code_source resource
aws_s3_object.wordpress_dockerbuild resource
aws_security_group.codebuild_security_group resource
local_file.php_ini resource
archive_file.code_build_package data source
aws_iam_policy_document.codebuild_assume_role_policy data source
aws_region.current data source