Skip to main content

service_sync_configs

Creates, updates, deletes, gets or lists a service_sync_configs resource.

Overview

Nameservice_sync_configs
TypeResource
Idaws.proton.service_sync_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
branchstringThe name of the code repository branch that holds the service code Proton will sync with.
file_pathstringThe file path to the service sync configuration file.
repository_namestringThe name of the code repository that holds the service code Proton will sync with. (pattern: <code>[A-Za-z0-9_.-]./[A-Za-z0-9_.-].</code>)
repository_providerstringThe name of the repository provider that holds the repository Proton will sync with. (GITHUB, GITHUB_ENTERPRISE, BITBUCKET)
service_namestringThe name of the service that the service instance is added to. (pattern: <code>^[0-9A-Za-z]+[0-9A-Za-z_-]*$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_service_sync_configselectregionGet detailed information for the service sync configuration.
create_service_sync_configinsertregion, branch, filePath, repositoryName, repositoryProvider, serviceNameCreate the Proton Ops configuration file.
update_service_sync_configupdateregion, branch, filePath, repositoryName, repositoryProvider, serviceNameUpdate the Proton Ops config file.
delete_service_sync_configdeleteregionDelete the Proton Ops file.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Get detailed information for the service sync configuration.

SELECT
branch,
file_path,
repository_name,
repository_provider,
service_name
FROM aws.proton.service_sync_configs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create the Proton Ops configuration file.

INSERT INTO aws.proton.service_sync_configs (
branch,
filePath,
repositoryName,
repositoryProvider,
serviceName,
region
)
SELECT
'{{ branch }}' /* required */,
'{{ filePath }}' /* required */,
'{{ repositoryName }}' /* required */,
'{{ repositoryProvider }}' /* required */,
'{{ serviceName }}' /* required */,
'{{ region }}'
RETURNING
service_sync_config
;

UPDATE examples

Update the Proton Ops config file.

UPDATE aws.proton.service_sync_configs
SET
branch = '{{ branch }}',
filePath = '{{ filePath }}',
repositoryName = '{{ repositoryName }}',
repositoryProvider = '{{ repositoryProvider }}',
serviceName = '{{ serviceName }}'
WHERE
region = '{{ region }}' --required
AND branch = '{{ branch }}' --required
AND filePath = '{{ filePath }}' --required
AND repositoryName = '{{ repositoryName }}' --required
AND repositoryProvider = '{{ repositoryProvider }}' --required
AND serviceName = '{{ serviceName }}' --required
RETURNING
service_sync_config;

DELETE examples

Delete the Proton Ops file.

DELETE FROM aws.proton.service_sync_configs
WHERE region = '{{ region }}' --required
;