apfm-actions/terraform-project-base-action
Begin a terraform project component
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit May 7, 2025
- License
- MIT
Pinned Snippet
uses: apfm-actions/terraform-project-base-action@70f94432801c046d8e55d256edda89a652d33bda # v1.0.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| project | Project name this resource is part of | yes | — |
| owner | Project owner/team | yes | — |
| Project owner/team email address | yes | — | |
| dev | Git branch pattern to deploy to dev environment | — | develop |
| stage | Git branch pattern to deploy to stage environment | — | master |
| prod | Git branch pattern to deploy to prod environment | — | tag |
| workspace | Terraform Workspace to operate from. In terraform this is accessible as terraform.workspace. By default the git branch pattern will decide which workspace to use. | no | — |
| tf_assume_role | Specify role that later actions should assume. Only actions designed to work with terraform-project-base will assume this role. | — | — |
| remote_state_bucket | S3 bucket containing this projects remote state data (read-write) | yes | — |
| remote_lock_table | DynamoDB Table for managing Terraform Locks | yes | — |
| shared_state_key | S3 key containing Terraform Shared State data to read from (read-only) | yes | — |
| plan | Skip the Terraform Plan portion of the build | — | true |
| debug | Enable action debugging | — | false |
Outputs
| name | description |
|---|---|
| account_root_id | AWS apfm-root account ID |
| account_id | Current AWS account ID |
| cluster_azs | ECS Cluster availability zone |
| cluster_cluster_name | ECS Cluster name |
| cluster_ecr_repo | Default ECR repo to use when launching containers in this cluster |
| cluster_elk_endpoint | ELK endpoint which collects logs for this cluster [deprecated] |
| cluster_execution_role | Default exec role name used when provisioning containers in this cluster |
| cluster_execution_role_arn | Default exec role ARN used when provisioning containers in this cluster |
| cluster_id | ECS Cluster id (same as name) |
| cluster_private_subnets | Default private subnets to use when launching containers in this cluster |
| cluster_public_subnets | Default public subnets to use when launching containers in this cluster |
| cluster_region | Region this cluster is deployed in [deprecated] |
| cluster_security_groups | Default security groups to use when launching containers in this cluster |
| cluster_service_namespace_id | AWS Service Discovery namespace ID for containers in this cluster |
| cluster_vpc_id | Default VPC to use when launching containers in this cluster |
| dns_zone_id_private | Default private DNS zone id to use when launching containers in this cluster |
| dns_zone_id_public | Default public DNS zone id to use when launching containers in this cluster |
| dns_zone_id_service | Default service discovery DNS zone id to use when launching containers in this cluster |
| external_id | AWS external id to use when assuming roles into this account |
| network_azs | Network availability zones [deprecated: same as cluster_azs] |
| network_cidr_block | Network CIDR block [deprecated] |
| network_dns_delegation_id | DNS delegation set id [deprecated] |
| network_igw_id | Network internet gateway id [deprecated] |
| network_power_user_role_arn | Power user role ARN [deprecated] |
| network_private_route_tbl | Private route table [deprecated] |
| network_private_subnets | Private subnets [deprecated] |
| network_public_route_tbl | Public route table [deprecated] |
| network_public_subnets | Public subnets [deprecated] |
| network_region | Network region [deprecated] |
| network_vpc_id | Network VPC ID [deprectated] |
| project_name | Project Name |
| project_owner | Project Owner |
| project_email | Project Email Address |
| route_table_id_private | Private route table id [deprecated] |
| route_table_id_public | Public route table id [deprecated] |
| setting_admin | Administrator name |
| setting_admin_email | Administrator email |
| setting_admin_key | Administrator public key |
| setting_admin_key_name | Administrator public key name |
| setting_domain_name | Top Level Domain Name for account |
| setting_elkendpoint | ELK Endpoint [deprecated] |
| setting_enable_couchdb | CouchDB Enabled [deprecated] |
| setting_enable_finance-cst | Finance CST enabled [deprecated] |
| setting_enable_sa_eks | SA EKS enabled [deprecated] |
| setting_enable_vpc_flow_logs | VPC Vlowlogs enabled [deprecated] |
| setting_enable_vpn_gateway | VPN Gateway enabled [deprecated] |
| setting_enable_wptest | WebPageSpeedTest enabled [deprecated] |
| setting_s3_remotestate_bucket_id | Terraform S3 remotestate bucket id] |
| setting_sa_eks_enable | SA EKS enabled [deprecated] |
| setting_subnet_prefix | Subnet prefix [deprecated] |
| sns_alerts | SNS alerts topic name [deprecated] |
| sns_notifications | SNS notifications topic name [deprecated] |
| subnet_id_private | Private subnet ID [deprecated] |
| subnet_id_public | Public subnet id [deprecated] |
| user_id | Current AWS user ID |
| user_arn | Current AWS user arn |