Skip to content
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

Initial commit static site tf module #1

Merged
merged 6 commits into from
Jan 16, 2023
Merged

Conversation

franklinpashok
Copy link
Contributor

No description provided.

@franklinpashok
Copy link
Contributor Author

Tested the module on platform-engg stg account.

cloudfront.tf Outdated
@@ -0,0 +1,65 @@
module "cdn" {
source = "terraform-aws-modules/cloudfront/aws"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version added

}, var.origin_access_identities)

origin = merge({
origin_access_identity = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@franklinpashok franklinpashok Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niroz89 the cloudfront module which i am taking reference currently OAC is not added, i saw few PR's to add support for OAC, but not merged yet. Once its added i will include OAC in our module as well.

terraform-aws-modules/terraform-aws-cloudfront#97

or shall we add as a resource for using OAC in static site module?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okk, we can wait until the PR gets merged.

s3.tf Outdated
@@ -0,0 +1,31 @@
module "s3" {
source = "terraform-aws-modules/s3-bucket/aws"
version = "3.5.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version = "3.5.0"
version = "~> 3.5.0"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

versions.tf Outdated
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.18"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version = ">= 4.18"
version = ">= 4.50"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link

@niroz89 niroz89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@franklinpashok franklinpashok merged commit 0d0d5cb into main Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants