File tree Expand file tree Collapse file tree 8 files changed +43
-7
lines changed
anyscale-v2-privatesubnets Expand file tree Collapse file tree 8 files changed +43
-7
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ module "aws_anyscale_v2" {
104104}
105105```
106106
107+ ### Cloud Registration Command
108+
109+ Each example includes an example ` anyscale cloud register ` command for creating the Cloud.
110+
107111Example Anyscale Cloud registration command for AWS:
108112``` bash
109113anyscale cloud register --provider aws \
@@ -122,6 +126,38 @@ anyscale cloud register --provider aws \
122126--functional-verify workspace,service
123127```
124128
129+ ### Cloud Resource Creation Command
130+
131+ All example modules now include an ` anyscale_cloud_resource_yaml ` output that generates a YAML configuration file compatible with the ` anyscale cloud resource create ` command to enable multi-resource Clouds.
132+
133+ Once a Cloud is initialized using ` anyscale cloud register ` , additional resources can be added using the following command:
134+
135+ ``` bash
136+ anyscale cloud resource create --cloud < existing-cloud-name> --file cloud-resource.yaml
137+ ```
138+
139+ Example Anyscale Cloud resource YAML for AWS:
140+ ``` yaml
141+ name : vm-aws-us-west-2
142+ provider : AWS
143+ compute_stack : VM
144+ region : us-west-2
145+ networking_mode : PUBLIC
146+ object_storage :
147+ bucket_name : s3://anyscale-bucket-name
148+ file_storage :
149+ file_storage_id : fs-12345678
150+ aws_config :
151+ vpc_id : vpc-12345678
152+ subnet_ids :
153+ - subnet-12345678
154+ - subnet-87654321
155+ security_group_ids :
156+ - sg-12345678
157+ anyscale_iam_role_id : arn:aws:iam::123456789012:role/anyscale-role
158+ cluster_iam_role_id : arn:aws:iam::123456789012:role/cluster-role
159+ ` ` `
160+
125161## Reporting Issues
126162
127163We use GitHub [Issues] to track community reported issues and missing features.
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ output "anyscale_register_command" {
6767output "anyscale_cloud_resource_yaml" {
6868 description = <<- EOF
6969 Anyscale cloud resource YAML configuration for common name example.
70- This output can be saved to a file and used with `anyscale cloud resource add ` command.
70+ This output can be saved to a file and used with `anyscale cloud resource create ` command.
7171 The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
7272 EOF
7373 value = <<- EOT
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ output "anyscale_register_command" {
7272output "anyscale_cloud_resource_yaml" {
7373 description = <<- EOF
7474 Anyscale cloud resource YAML configuration for existing S3 example.
75- This output can be saved to a file and used with `anyscale cloud resource add ` command.
75+ This output can be saved to a file and used with `anyscale cloud resource create ` command.
7676 The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
7777 EOF
7878 value = <<- EOT
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ output "anyscale_register_command" {
5050output "anyscale_cloud_resource_yaml" {
5151 description = <<- EOF
5252 Anyscale cloud resource YAML configuration for existing VPC example.
53- This output can be saved to a file and used with `anyscale cloud resource add ` command.
53+ This output can be saved to a file and used with `anyscale cloud resource create ` command.
5454 The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
5555 EOF
5656 value = <<- EOT
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ output "anyscale_register_command" {
2828output "anyscale_cloud_resource_yaml" {
2929 description = <<- EOF
3030 Anyscale cloud resource YAML configuration for kitchen sink example.
31- This output can be saved to a file and used with `anyscale cloud resource add ` command.
31+ This output can be saved to a file and used with `anyscale cloud resource create ` command.
3232 The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
3333 EOF
3434 value = <<- EOT
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ output "anyscale_register_command" {
2525output "anyscale_cloud_resource_yaml" {
2626 description = <<- EOF
2727 Anyscale cloud resource YAML configuration for KMS example.
28- This output can be saved to a file and used with `anyscale cloud resource add ` command.
28+ This output can be saved to a file and used with `anyscale cloud resource create ` command.
2929 The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
3030 EOF
3131 value = <<- EOT
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ output "anyscale_register_command" {
6868output "anyscale_cloud_resource_yaml" {
6969 description = <<- EOF
7070 Anyscale cloud resource YAML configuration for private subnets.
71- This output can be saved to a file and used with `anyscale cloud resource add ` command.
71+ This output can be saved to a file and used with `anyscale cloud resource create ` command.
7272 The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
7373 EOF
7474 value = <<- EOT
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ output "anyscale_register_command" {
6464output "anyscale_cloud_resource_yaml" {
6565 description = <<- EOF
6666 Anyscale cloud resource YAML configuration.
67- This output can be saved to a file and used with `anyscale cloud resource add ` command.
67+ This output can be saved to a file and used with `anyscale cloud resource create ` command.
6868 The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
6969 EOF
7070 value = <<- EOT
You can’t perform that action at this time.
0 commit comments