-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
Tested the module on platform-engg stg account. |
cloudfront.tf
Outdated
@@ -0,0 +1,65 @@ | |||
module "cdn" { | |||
source = "terraform-aws-modules/cloudfront/aws" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add version.
There was a problem hiding this comment.
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 = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we able to switch to OAC instead of OAI..?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version = "3.5.0" | |
version = "~> 3.5.0" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version = ">= 4.18" | |
version = ">= 4.50" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.