Comments (3)
To accomplish the above, we will need to create an IAM role in the Canadian Digital Services AWS account. The IAM policy will need to have the following:
- Have ability to mange notification.canada.ca hosted zone records but NOT the hosted zone itself.
- Have a trust policy allowing the role to be asumed by the OIDC Github role running prod terraform apply.
from dns.
The policy code for part 1 will look similar to:
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"route53:ListResourceRecordSets",
"route53:ChangeResourceRecordSets",
"route53:GetChange"
],
"Effect": "Allow",
"Resource": "arn:aws:route53:::hostedzone/HOSTED_ZONE_ID_FOR_NOTIFICATION_CANADA_CA"
},
{
"Action": [
"route53:ListHostedZones",
"route53:GetHostedZoneCount",
"route53:ListHostedZonesByName"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
For the second part, we will need to modify the notification_apply_oidc role to contain the following:
data "aws_iam_policy_document" "assume_dns_manager" {
statement {
sid = "AssumeProdDNSManagerRoles"
actions = [
"sts:AssumeRole",
]
resources = [
"arn:aws:iam::CanadianDigitalServicesAWSAccountID:role/prod_dns_manager"
]
}
}
resource "aws_iam_policy" "assume_prod_dns_manager" {
name = terrafrom_apply_oidc_role
policy = data.aws_iam_policy_document.assume_dns_manager.json
}
resource "aws_iam_role_policy_attachment" "assume_prod_dns_manager" {
role = terrafrom_apply_oidc_role
policy_arn = aws_iam_policy.assume_prod_dns_manager.arn
}
from dns.
PR has been created to address this issue here - #397
from dns.
Related Issues (20)
- Request for workplace.alpha.canada.ca to support the TBS OCIO team HOT 1
- Update workplace.alpha.canada.ca CNAME and A record HOT 1
- Convert CI to Github Actions HOT 1
- Request for worksite.alpha.canada.ca to support the TBS OCIO team HOT 2
- Update worksite.alpha.canada.ca temporarily to point to CNAME for Domain Verification
- Migrate DNS TF Apply from CircleCI HOT 1
- Update design.alpha.canada.ca CNAME
- Add TXT record to verify domain for design.alpha.canada.ca
- Update Terraform to v1.x.x HOT 1
- Setup OIDC Role for TF Plan/Apply
- New domain itap-piem.alpha-canada.ca HOT 1
- Dependency Dashboard
- Fix a typo in StatCan acme records HOT 1
- Remove pulse.alpha.canada.ca
- Remove old CDS-SNC.ca domains that may not be used anymore. HOT 1
- Remove worksite.alpha.canada.ca domain that is no longer used HOT 1
- New design-system.alpha.canada.ca domain
- FEAT: Add DNS record for 1Password SCIM Bridge
- Remove references to notification.canada.ca
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dns.