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

Move logs from govuk-aws #119

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Move logs from govuk-aws #119

wants to merge 1 commit into from

Conversation

MuriloDalRi
Copy link
Contributor

Move the infra-fastly-logs project from govuk-aws.

alphagov/govuk-infrastructure#1127

Copy link
Member

@samsimpson1 samsimpson1 left a comment

Choose a reason for hiding this comment

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

Mostly looks good, the imports will fail in non-prod environments, though I guess that won't be much of an issue if you're planning on manually updating the imports file for each environment.

I've made some small suggestions, if you want to do the import now they can be fixed later.

Copy link
Member

Choose a reason for hiding this comment

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

Is this file required?

logs/main.tf Outdated

resource "aws_iam_policy" "logs_writer" {
name = "fastly-logs-${var.environment}-logs-writer-policy"
policy = <<EOF
Copy link
Member

Choose a reason for hiding this comment

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

These IAM policies should use aws_iam_policy_document

logs/main.tf Outdated Show resolved Hide resolved
logs/main.tf Outdated Show resolved Hide resolved
logs/main.tf Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

The imports that refer to prod won't work in the other environments

Move the infra-fastly-logs project from govuk-aws.
@theseanything theseanything marked this pull request as draft November 11, 2024 10:02
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