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

Add roles and permissions prior to Migration #6160

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@
"stateLockingDetails": [],
"ssmParameterConfig": [
{
"ssmParameterArnPrefixes": ["ap-uploader/env/", "ap-uploader/dev/", "ap-uploader/prod/"],
"ssmParameterArnPrefixes": [
"ap-uploader/env/",
"ap-uploader/dev/",
"ap-uploader/prod/"
],
"ssmParameterRegion": "eu-west-1"
}
]
Expand Down Expand Up @@ -176,12 +180,38 @@
"modernisation-platform-lake-formation-share": {
"account": "analytical-platform-data-production",
"stateConfig": [],
"repositories": [
"ministryofjustice/modernisation-platform-environments"
],
"repositories": ["ministryofjustice/modernisation-platform-environments"],
"targets": [],
"stateLockingDetails": [],
"ssmParameterConfig": [],
"lakeFormationSharePolicy": true
},
"create-a-derived-table-infrastructure": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you double-check this doesn't use a state? There's a mention of pulumi in the docs so I'd want to be careful.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both repositories are Pulumi Python and use the bucket s3://data-engineering-pulumi.analytics.justice.gov.uk/.pulumi/ and within the stacks folder are the files de-database-access.json and create-a-derived-table-infra.json which i have inferred are the state files for Pulumi. The stateConfig has been updated accordingly.

"account": "analytical-platform-data-production",
"stateConfig": [
{
"stateBucket": "data-engineering-pulumi.analytics.justice.gov.uk/",
"stateBucketKey": ".pulumi/"
}
],
"repositories": ["ministryofjustice/create-a-derived-table-infrastructure"],
"targets": ["analytical-platform-data-production"],
"stateLockingDetails": [],
"ssmParameterConfig": []
},
"data-engineering-database-access": {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am pretty sure this at a minimum uses a state for Pulumi and now for terraform, so this will need amending.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both repositories are Pulumi Python and use the bucket s3://data-engineering-pulumi.analytics.justice.gov.uk/.pulumi/ and within the stacks folder are the files de-database-access.json and create-a-derived-table-infra.json which i have inferred are the state files for Pulumi. The stateConfig has been updated accordingly. I have been unable to find any reference to a terraform.tfstate in the data-engineering-database-access repository

"account": "analytical-platform-data-production",
"stateConfig": [
{
"stateBucket": "data-engineering-pulumi.analytics.justice.gov.uk/",
"stateBucketKey": ".pulumi/"
}
],
"repositories": [
"moj-analytical-services/data-engineering-database-access"
],
"targets": ["analytical-platform-data-production"],
"stateLockingDetails": [],
"ssmParameterConfig": []
}
}