Skip to content

Commit c475790

Browse files
authored
0.1.1 (#2)
* Refactoring md5 calculation * Update changelog
1 parent e92d1bd commit c475790

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.1.1 - 19th June 2021
4+
5+
Bugfix: Refactor md5 calculation on archive_file in codebuild child module.
6+
37
## 0.1.0 - 19th June 2021
48

59
Initial release of Serverless Static Wordpress Terraform module.

Diff for: modules/codebuild/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ resource "aws_s3_bucket_object" "wordpress_dockerbuild" {
5959
bucket = aws_s3_bucket.code_source.id
6060
key = "wordpress_docker.zip"
6161
source = "${path.module}/codebuild_files/wordpress_docker.zip"
62-
etag = filemd5("${path.module}/codebuild_files/wordpress_docker.zip")
62+
etag = data.archive_file.code_build_package.output_md5
6363
}
6464

6565
resource "aws_security_group" "codebuild_security_group" {

Diff for: modules/codebuild/outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ output "codebuild_project_name" {
44
}
55

66
output "codebuild_package_etag" {
7-
value = filemd5("${path.module}/codebuild_files/wordpress_docker.zip")
7+
value = data.archive_file.code_build_package.output_md5
88
description = "The etag of the codebuild package file."
99
}

0 commit comments

Comments
 (0)