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

[fix] Various fixes for TF AWS 3.0 compatibility #324

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Conversation

mbarrien
Copy link
Contributor

@mbarrien mbarrien commented Jul 8, 2021

  • Shorten static site lambda name
  • Remove unneeded bare aws provider from static site
  • Fix aws-ssm-params readme
  • Upgrade terraform-aws-modules/security-group/aws for TF 3.0 compatiblity (and update since new version renames output this_security_group_id to security_group_id)
  • aws-lambda-functionaws_cloudwatch_log_group use ARN instead of manually
    constructing since ARN is fixed in TF AWS 3.0
  • Update readmes via make docs

@mbarrien mbarrien requested a review from alexsmaliy-czi July 8, 2021 21:25
@mbarrien mbarrien requested a review from a team as a code owner July 8, 2021 21:25
@@ -30,7 +30,7 @@ resource "aws_lb_target_group" "service" {
resource "aws_lb" "service" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ [tflint] reported by reviewdog 🐶
Missing version constraint for provider "aws" in "required_providers"

@@ -56,7 +56,7 @@ resource "aws_elasticache_cluster" "default" {
num_cache_nodes = 1
parameter_group_name = var.parameter_group_name
Copy link
Collaborator

Choose a reason for hiding this comment

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

📝 [tflint] reported by reviewdog 🐶
"default.redis5.0" is default parameter group. You cannot edit it.

@@ -87,7 +87,7 @@ resource "aws_s3_bucket_public_access_block" "bucket" {
module "security_headers_lambda" {
source = "../aws-lambda-edge-add-security-headers"

function_name = replace("${local.website_fqdn}-static-site-security-headers", ".", "-")
function_name = replace("${local.website_fqdn}-headers", ".", "-")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reduce issue where this string is >64 characters long. Forces redeploy of lambda for anything already deployed with HSTS headers (which should just be a single deployment in Along), and the redeploy should be safe.

* Shorten static site lambda name
* Remove unneeded bare aws provider from static site
* Fix aws-ssm-params readme
* Upgrade terraform-aws-modules/security-group/aws for TF 3.0 compatiblity
* aws-lambda-functionaws_cloudwatch_log_group use ARN instead of manually
  constructing since ARN is fixed in TF AWS 3.0
* Update readmes via make docs
@mbarrien mbarrien force-pushed the tf-aws-3.0-fixes branch from 3683c45 to eb30ace Compare July 8, 2021 22:15
@@ -81,14 +81,6 @@ data "aws_region" "current" {}
data "aws_caller_identity" "current" {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ [tflint] reported by reviewdog 🐶
data "aws_caller_identity" "current" is declared but not used

@mbarrien mbarrien merged commit ae62854 into main Jul 9, 2021
@mbarrien mbarrien deleted the tf-aws-3.0-fixes branch July 9, 2021 00:32
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.

3 participants