Skip to content

Commit

Permalink
Rename API Gateway TF log group resources
Browse files Browse the repository at this point in the history
  • Loading branch information
dsotirho-ucsc committed Feb 20, 2025
1 parent abc58ce commit 72619a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scripts/rename_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
for num in [1, 2]
}

resource = 'aws_cloudwatch_log_group'
renamed.update({
f'{resource}.{name}': f'{resource}.{name}_api_gateway'
for name in ['indexer', 'service']
})


def main(argv: list[str]):
configure_script_logging(log)
Expand Down
2 changes: 1 addition & 1 deletion terraform/api_gateway.tf.json.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ def for_domain(cls, domain):
}
},
'aws_cloudwatch_log_group': {
app.name: {
f'{app.name}_api_gateway': {
'name': '/aws/apigateway/' + config.qualified_resource_name(app.name),
'retention_in_days': config.audit_log_retention_days,
}
Expand Down

0 comments on commit 72619a6

Please sign in to comment.