Edit a template sync configuration
You can edit any of the template sync configuration parameters except
template-name
and template-type
.
Learn to edit a template sync configuration using the console or CLI.
- AWS Management Console
-
Edit a template sync configuration branch using the console.
In the list of templates.
-
In the AWS Proton console
, choose (Environment or Service) Templates. -
In the list of templates, choose the name of the template with the template sync configuration that you want to edit.
-
In the template detail page, choose the Template sync tab.
-
In the Template sync details section, choose Edit.
-
In the Edit page, in the Source code repository section, for Branch, select a branch, and then choose Save configuration.
-
- AWS CLI
-
The following example command and response shows how you can edit a template sync configuration
branch
using the CLI.Run the following command.
$
aws proton update-template-sync-config \ --template-name "
env-template
" \ --template-type "ENVIRONMENT
" \ --repository-provider "GITHUB
" \ --repository-name "myrepos/templates
" \ --branch "fargate
" \ --subdirectory "env-template
"The response is as follows.
{ "templateSyncConfigDetails": { "branch": "
fargate
", "repositoryProvider": "GITHUB
", "repositoryName": "myrepos/myrepo
", "subdirectory": "templates
", "templateName": "env-template
", "templateType": "ENVIRONMENT
" } }You can similarly use the AWS CLI to update synced service templates.