Command: environment create
The environment create command creates a managed service named environment, within which data warehouse clusters can be created.
You need to have access to a Master Token to create environment.
Usage
edw environment create [flags]
Required Flags
-aws-iam-role-arn
- The IAM role ARN on the target AWS account. This role can be created using the AWS CloudFormation script that theinit
helper command above generates.-name
- The name of the environment being created.
Note: If the environment has not been configured or set via environment variables, global flags are also required.
Output
id
- The Environment ID (generated by the managed service).name
- The Name that was supplied by the command.client_id
- The Client ID that was supplied by the command.api_token
- This is the environment scoped token that can be used instead of the master token for the environment created. This value is only shown on create, and is not available using other commands like describe.iam_role_arn
- The ARN attached to the environment.created_at
- The Date that the Environment was created.updated_at
- The Date that the Environment was updated.
Example
$ edw environment create \
-name CLI_example \
-aws-iam-role arn:aws:iam::xxx:role/edw/access/role/edw-access-role
{
"id": k9don5r4e7ut,
"name": "CLI_Created",
"client_id": 5,
"api_token": "123456...654321",
"iam_role_arn": "arn:aws:iam::xxx:role/edw/access/role/edw-access-role",
"created_at": "2020-03-12T19:07:13Z",
"updated_at": "2020-03-12T19:07:13Z"
}