proton_create_environment: Deploy a new environment

View source: R/proton_operations.R

proton_create_environmentR Documentation

Deploy a new environment

Description

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.

Usage

proton_create_environment(
  codebuildRoleArn = NULL,
  componentRoleArn = NULL,
  description = NULL,
  environmentAccountConnectionId = NULL,
  name,
  protonServiceRoleArn = NULL,
  provisioningRepository = NULL,
  spec,
  tags = NULL,
  templateMajorVersion,
  templateMinorVersion = NULL,
  templateName
)

Arguments

codebuildRoleArn

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.

componentRoleArn

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.

description

A description of the environment that's being created and deployed.

environmentAccountConnectionId

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.

name

[required] The name of the environment.

protonServiceRoleArn

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.

provisioningRepository

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.

spec

[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.

tags

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.

templateMajorVersion

[required] The major version of the environment template.

templateMinorVersion

The minor version of the environment template.

templateName

[required] The name of the environment template. For more information, see Environment Templates in the Proton User Guide.


paws.compute documentation built on Sept. 12, 2024, 6:12 a.m.