apply
Run the Terraform plan/apply flow against the generated configuration.
What it does
Section titled “What it does”- Verifies you are in a deploy-stack project (
terraform/main.tfmust exist), exiting otherwise, soapplynever runs against the wrong directory. - Renders an infrastructure preview from your Terraform config and framework detection. With
--dry-runit stops there and provisions nothing. - Otherwise runs
terraform init -upgradefollowed byterraform apply -auto-approveinterraform/, streaming progress, then prints the live URLs from the Terraform outputs (cloudfront_urlandalb_direct_url) plus thegit pushcommand that deploys your app and clears the initial 503. - Without
--autoApprove, asks for confirmation after the preview; declining aborts without provisioning anything. - If the S3 state bucket is missing (e.g. deleted manually), offers to recreate it and resume automatically instead of failing.
- On the known GitHub OIDC provider conflict (
EntityAlreadyExistsfortoken.actions.githubusercontent.com), tells you to setcreate_oidc_provider = falseinterraform/oidc.tfand re-run; other failures print the Terraform error and the manualcd terraform && terraform applyfallback. - Emits an
infrastructure_appliedtelemetry event recording success or the error code.
npx deploy-stack applynpx deploy-stack apply --dry-run| Flag | Description |
|---|---|
--dry-run |
Render a preview of the planned changes without applying them. |
apply shells out to the terraform binary in your generated terraform/ directory and streams progress while it runs.