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

Ato:618: Cloudfront configuration for staging #4542

Merged
merged 5 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/cloudfront-orchestration/cloudfront/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The list of permitted environments is set up in the script. The script will auto
account and then create or update the Cloudformation stack using the parameters and tags provided.

If you have not done so already, your AWS profiles will need to be configured using the
script [here](../../../scripts/export_aws_creds.sh).
script [here](../../../scripts/set-up-sso.sh).

Note that the `dev` environment refers to the `oidc.sandpit.account.gov.uk` domain.

Expand Down
1 change: 0 additions & 1 deletion ci/cloudfront-orchestration/cloudfront/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ if [[ $# == 2 ]] && [[ $2 == "--create" ]]; then
else
aws cloudformation update-stack \
--region eu-west-2 \
--enable-termination-protection \
--stack-name="$ENVIRONMENT-oidc-cloudfront" \
--capabilities CAPABILITY_NAMED_IAM \
--template-url ${TEMPLATE_URL} \
Expand Down
4 changes: 4 additions & 0 deletions ci/cloudfront-orchestration/cloudfront/dev/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
{
"ParameterKey": "StandardLoggingEnabled",
"ParameterValue": "true"
},
{
"ParameterKey": "LogDestination",
"ParameterValue": "csls_cw_logs_destination_prodpython"
}
]
26 changes: 26 additions & 0 deletions ci/cloudfront-orchestration/cloudfront/staging/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"ParameterKey": "DistributionAlias",
"ParameterValue": "oidc.staging.account.gov.uk"
},
{
"ParameterKey": "CloudFrontCertArn",
"ParameterValue": "arn:aws:acm:us-east-1:758531536632:certificate/56a88729-5b5e-4eff-b131-23f8dfc91c66"
},
{
"ParameterKey": "FraudHeaderEnabled",
"ParameterValue": "false"
},
{
"ParameterKey": "CloudFrontWafACL",
"ParameterValue": "arn:aws:wafv2:us-east-1:758531536632:global/webacl/staging-oidc-cloudfront-waf/0a9c88b9-7a82-4294-9fb1-883b8a155af3"
},
{
"ParameterKey": "StandardLoggingEnabled",
"ParameterValue": "true"
},
{
"ParameterKey": "LogDestination",
"ParameterValue": "csls_cw_logs_destination_prodpython"
}
]
22 changes: 22 additions & 0 deletions ci/cloudfront-orchestration/cloudfront/staging/tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"Key": "Product",
"Value": "GOV.UK Sign In"
},
{
"Key": "System",
"Value": "Orchestration"
},
{
"Key": "Environment",
"Value": "staging"
},
{
"Key": "Owner",
"Value": "di-orchestration@digital.cabinet-office.gov.uk"
},
{
"Key": "Repository",
"Value": "govuk-one-login/authentication-api"
}
]
14 changes: 14 additions & 0 deletions ci/cloudfront-orchestration/monitoring/staging/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"ParameterKey": "CloudfrontDistribution",
hannah-leong marked this conversation as resolved.
Show resolved Hide resolved
"ParameterValue": "E1ULCVNG0ES8DC"
},
{
"ParameterKey": "CloudFrontAdditionaldMetricsEnabled",
"ParameterValue": "true"
},
{
"ParameterKey": "CacheHitAlarmSNSTopicARN",
"ParameterValue": "arn:aws:sns:us-east-1:758531536632:staging-oidc-cloudfront-alerts"
}
]
22 changes: 22 additions & 0 deletions ci/cloudfront-orchestration/monitoring/staging/tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"Key": "Product",
"Value": "GOV.UK Sign In"
},
{
"Key": "System",
"Value": "Orchestration"
},
{
"Key": "Environment",
"Value": "staging"
},
{
"Key": "Owner",
"Value": "di-orchestration@digital.cabinet-office.gov.uk"
},
{
"Key": "Repository",
"Value": "govuk-one-login/authentication-api"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"ParameterKey": "HostedZoneID",
"ParameterValue": "Z013545810R9Q9A5U2JW5"
},
{
"ParameterKey": "DomainName",
"ParameterValue": "oidc.staging.account.gov.uk"
}
]
22 changes: 22 additions & 0 deletions ci/cloudfront-orchestration/tls-certificate/staging/tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"Key": "Product",
"Value": "GOV.UK Sign In"
},
{
"Key": "System",
"Value": "Orchestration"
},
{
"Key": "Environment",
"Value": "staging"
},
{
"Key": "Owner",
"Value": "di-orchestration@digital.cabinet-office.gov.uk"
},
{
"Key": "Repository",
"Value": "govuk-one-login/authentication-api"
}
]
6 changes: 6 additions & 0 deletions ci/cloudfront-orchestration/waf/staging/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"ParameterKey": "Environment",
"ParameterValue": "staging"
}
]
22 changes: 22 additions & 0 deletions ci/cloudfront-orchestration/waf/staging/tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"Key": "Product",
"Value": "GOV.UK Sign In"
},
{
"Key": "System",
"Value": "Orchestration"
},
{
"Key": "Environment",
"Value": "staging"
},
{
"Key": "Owner",
"Value": "di-orchestration@digital.cabinet-office.gov.uk"
},
{
"Key": "Repository",
"Value": "govuk-one-login/authentication-api"
}
]
Loading