Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ module "aws_anyscale_v2" {
}
```

### Cloud Registration Command

Each example includes an example `anyscale cloud register` command for creating the Cloud.

Example Anyscale Cloud registration command for AWS:
```bash
anyscale cloud register --provider aws \
Expand All @@ -122,6 +126,38 @@ anyscale cloud register --provider aws \
--functional-verify workspace,service
```

### Cloud Resource Creation Command

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.

Once a Cloud is initialized using `anyscale cloud register`, additional resources can be added using the following command:

```bash
anyscale cloud resource create --cloud <existing-cloud-name> --file cloud-resource.yaml
```

Example Anyscale Cloud resource YAML for AWS:
```yaml
name: vm-aws-us-west-2
provider: AWS
compute_stack: VM
region: us-west-2
networking_mode: PUBLIC
object_storage:
bucket_name: s3://anyscale-bucket-name
file_storage:
file_storage_id: fs-12345678
aws_config:
vpc_id: vpc-12345678
subnet_ids:
- subnet-12345678
- subnet-87654321
security_group_ids:
- sg-12345678
anyscale_iam_role_id: arn:aws:iam::123456789012:role/anyscale-role
cluster_iam_role_id: arn:aws:iam::123456789012:role/cluster-role
```

## Reporting Issues

We use GitHub [Issues] to track community reported issues and missing features.
Expand Down
2 changes: 1 addition & 1 deletion examples/anyscale-v2-commonname/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ output "anyscale_register_command" {
output "anyscale_cloud_resource_yaml" {
description = <<-EOF
Anyscale cloud resource YAML configuration for common name example.
This output can be saved to a file and used with `anyscale cloud resource add` command.
This output can be saved to a file and used with `anyscale cloud resource create` command.
The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
EOF
value = <<-EOT
Expand Down
2 changes: 1 addition & 1 deletion examples/anyscale-v2-existing-s3/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ output "anyscale_register_command" {
output "anyscale_cloud_resource_yaml" {
description = <<-EOF
Anyscale cloud resource YAML configuration for existing S3 example.
This output can be saved to a file and used with `anyscale cloud resource add` command.
This output can be saved to a file and used with `anyscale cloud resource create` command.
The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
EOF
value = <<-EOT
Expand Down
2 changes: 1 addition & 1 deletion examples/anyscale-v2-existing-vpc/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ output "anyscale_register_command" {
output "anyscale_cloud_resource_yaml" {
description = <<-EOF
Anyscale cloud resource YAML configuration for existing VPC example.
This output can be saved to a file and used with `anyscale cloud resource add` command.
This output can be saved to a file and used with `anyscale cloud resource create` command.
The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
EOF
value = <<-EOT
Expand Down
2 changes: 1 addition & 1 deletion examples/anyscale-v2-kitchensink/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ output "anyscale_register_command" {
output "anyscale_cloud_resource_yaml" {
description = <<-EOF
Anyscale cloud resource YAML configuration for kitchen sink example.
This output can be saved to a file and used with `anyscale cloud resource add` command.
This output can be saved to a file and used with `anyscale cloud resource create` command.
The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
EOF
value = <<-EOT
Expand Down
2 changes: 1 addition & 1 deletion examples/anyscale-v2-kms/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ output "anyscale_register_command" {
output "anyscale_cloud_resource_yaml" {
description = <<-EOF
Anyscale cloud resource YAML configuration for KMS example.
This output can be saved to a file and used with `anyscale cloud resource add` command.
This output can be saved to a file and used with `anyscale cloud resource create` command.
The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
EOF
value = <<-EOT
Expand Down
2 changes: 1 addition & 1 deletion examples/anyscale-v2-privatesubnets/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ output "anyscale_register_command" {
output "anyscale_cloud_resource_yaml" {
description = <<-EOF
Anyscale cloud resource YAML configuration for private subnets.
This output can be saved to a file and used with `anyscale cloud resource add` command.
This output can be saved to a file and used with `anyscale cloud resource create` command.
The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
EOF
value = <<-EOT
Expand Down
2 changes: 1 addition & 1 deletion examples/anyscale-v2/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ output "anyscale_register_command" {
output "anyscale_cloud_resource_yaml" {
description = <<-EOF
Anyscale cloud resource YAML configuration.
This output can be saved to a file and used with `anyscale cloud resource add` command.
This output can be saved to a file and used with `anyscale cloud resource create` command.
The name is auto-generated as vm-aws-$${var.aws_region} but can be updated in the YAML file if needed.
EOF
value = <<-EOT
Expand Down
Loading