Amplify Branch

An Amplify Branch in AWS represents a deployment branch within an Amplify App. It allows you to connect a specific Git branch to your Amplify environment, enabling continuous deployment of front-end web applications. Each branch can have its own build settings, environment variables, and custom domains, making it easy to manage multiple environments such as development, staging, and production.

aws.amplify_branch

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
active_job_idcorestringThe ID of the active job for a branch of an Amplify app.
associated_resourcescorearray<string>A list of custom resources that are linked to this branch.
backendcorejsonDescribes the backend associated with an Amplify Branch. This property is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
backend_environment_arncorestringThe Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. This property is available to Amplify Gen 1 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
basic_auth_credentialscorestringThe basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password.
branch_arncorestringThe Amazon Resource Name (ARN) for a branch that is part of an Amplify app.
branch_namecorestringThe name for the branch that is part of an Amplify app.
build_speccorestringThe build specification (build spec) content for the branch of an Amplify app.
compute_role_arncorestringThe Amazon Resource Name (ARN) of the IAM role for a branch of an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see Adding an SSR Compute role in the Amplify User Guide.
create_timecoretimestampA timestamp of when Amplify created the branch.
custom_domainscorearray<string>The custom domains for a branch of an Amplify app.
descriptioncorestringThe description for the branch that is part of an Amplify app.
destination_branchcorestringThe destination branch if the branch is a pull request branch.
enable_auto_buildcoreboolEnables auto-building on push for a branch of an Amplify app.
enable_basic_authcoreboolEnables basic authorization for a branch of an Amplify app.
enable_notificationcoreboolEnables notifications for a branch that is part of an Amplify app.
enable_performance_modecoreboolEnables performance mode for the branch. Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.
enable_pull_request_previewcoreboolEnables pull request previews for the branch.
environment_variablescorehstoreThe environment variables specific to a branch of an Amplify app.
frameworkcorestringThe framework for a branch of an Amplify app.
pull_request_environment_namecorestringThe Amplify environment name for the pull request.
source_branchcorestringThe source branch if the branch is a pull request branch.
stagecorestringThe current stage for the branch that is part of an Amplify app.
tagscorehstore
thumbnail_urlcorestringThe thumbnail URL for the branch of an Amplify app.
total_number_of_jobscorestringThe total number of jobs that are part of an Amplify app.
ttlcorestringThe content Time to Live (TTL) for the website in seconds.
update_timecoretimestampA timestamp for the last updated time for a branch.