Deploy a new environment. An Proton environment is created from an environment template that defines infrastructure and resources that can be shared across services.
See https://www.paws-r-sdk.com/docs/proton_create_environment/ for full documentation.
proton_create_environment(
codebuildRoleArn = NULL,
componentRoleArn = NULL,
description = NULL,
environmentAccountConnectionId = NULL,
name,
protonServiceRoleArn = NULL,
provisioningRepository = NULL,
spec,
tags = NULL,
templateMajorVersion,
templateMinorVersion = NULL,
templateName
)
The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
To use CodeBuild-based provisioning for the environment or for any
service instance running in the environment, specify either the
environmentAccountConnectionId
or codebuildRoleArn
parameter.
The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
You must specify componentRoleArn
to allow directly defined components
to be associated with this environment.
For more information about components, see Proton components in the Proton User Guide.
A description of the environment that's being created and deployed.
The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an environment account. For more information, see Environment account connections in the Proton User guide.
To use Amazon Web Services-managed provisioning for the environment,
specify either the environmentAccountConnectionId
or
protonServiceRoleArn
parameter and omit the provisioningRepository
parameter.
[required] The name of the environment.
The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
To use Amazon Web Services-managed provisioning for the environment,
specify either the environmentAccountConnectionId
or
protonServiceRoleArn
parameter and omit the provisioningRepository
parameter.
The linked repository that you use to host your rendered infrastructure
templates for self-managed provisioning. A linked repository is a
repository that has been registered with Proton. For more information,
see create_repository
.
To use self-managed provisioning for the environment, specify this
parameter and omit the environmentAccountConnectionId
and
protonServiceRoleArn
parameters.
[required] A YAML formatted string that provides inputs as defined in the environment template bundle schema file. For more information, see Environments in the Proton User Guide.
An optional list of metadata items that you can associate with the Proton environment. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
[required] The major version of the environment template.
The minor version of the environment template.
[required] The name of the environment template. For more information, see Environment Templates in the Proton User Guide.