Skip to content

Commit 24a1e7d

Browse files
akuzminskyclaude
andauthored
Add development environment for aws-service-infrahouse-app (#29)
Create IAM roles (state-manager, admin, github) for the development environment in the same accounts as sandbox (workload: 303467602807, tfstates: 289256138624). Developers will use this environment to pull secrets from AWS while running frontend and backend locally. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 39e8694 commit 24a1e7d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

repo-aws-service-infrahouse-app.tf

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,25 @@ module "aws_service_infrahouse_app_gha_sandbox" {
3434
]
3535
}
3636

37+
module "aws_service_infrahouse_app_gha_development" {
38+
source = "registry.infrahouse.com/infrahouse/gha-admin/aws"
39+
version = "4.0.0"
40+
providers = {
41+
aws = aws.aws-303467602807-uw1
42+
aws.cicd = aws.aws-303467602807-uw1
43+
aws.tfstates = aws.aws-289256138624-uw1
44+
}
45+
environment = "development"
46+
gh_org_name = local.gh_org_name
47+
repo_name = "aws-service-infrahouse-app"
48+
state_bucket = module.aws_service_infrahouse_app_state.bucket_name
49+
state_key = "development/terraform.tfstate"
50+
terraform_locks_table_arn = module.aws_service_infrahouse_app_state.lock_table_arn
51+
trusted_arns = [
52+
local.root_sso_admin_arn
53+
]
54+
}
55+
3756
# --- The service repo (pure GitHub, no AWS) ---
3857
module "aws_service_infrahouse_app" {
3958
source = "./modules/service-repo"
@@ -45,6 +64,13 @@ module "aws_service_infrahouse_app" {
4564
state_bucket = module.aws_service_infrahouse_app_state.bucket_name
4665

4766
environments = {
67+
development = {
68+
region = local.aws_default_region
69+
admin_role_arn = module.aws_service_infrahouse_app_gha_development.admin_role_arn
70+
github_role_arn = module.aws_service_infrahouse_app_gha_development.github_role_arn
71+
state_manager_role_arn = module.aws_service_infrahouse_app_gha_development.state_manager_role_arn
72+
deploy_order = 0
73+
}
4874
sandbox = {
4975
region = local.aws_default_region
5076
admin_role_arn = module.aws_service_infrahouse_app_gha_sandbox.admin_role_arn

0 commit comments

Comments
 (0)