You configure a project to define the users that can provision workloads, the priority and cloud zone of deployments, and the maximum allowed deployment instances.
-
Log in to the vRealize Automation cloud services console at
https://<vra_fqdn>/csp/gateway/portal
with a user assigned the Cloud Assembly Administrator service role. -
On the main navigation bar, click Services.
-
Under My services, click Cloud Assembly.
-
Click the Infrastructure tab.
-
In the left pane, select Administration > Projects.
-
Click New project.
-
On the Summary tab, configure the settings.
Setting Example Value Name Sample Description Sample Project -
Click the Users tab, and for each group, click Add groups, configure these settings, and click Add.
Setting Example Value for Project Administrators Example Value for Project Users Group gg-vra-project-admins-sample gg-vra-project-users-sample Assign role Administrator Member -
Click the Provisioning tab and, from the Add zone drop-down menu, select Cloud zone.
-
Configure these settings, and click Add.
Setting Example Value Cloud zone sfo-w01-vc01 / sfo-w01-dc01 Provisioning priority 1 Instances limit 0 Memory limit (GB) 0 CPU limit 0 Storage limit(GB) 0 -
If you want to add more cloud zones to the project, repeat step 10 for each additional cloud zone.
-
On the Provisioning tab, under Custom naming, in the Template text box, enter the naming template for the machines in this project,
${project.name}-${resource.name}${###}
.Object naming will appear similar to
sample-web123
. -
Click Create.
-
If you want to create more projects, repeat the procedure for each additional project.
-
Navigate to the Terraform example in the repository.
cd terraform-examples/vra/vra-project
-
Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.copy terraform.tfvars.example terraform.tfvars
-
Open the
terraform.tfvars
file, update the variables for your environment, and save the file.You can assign multiple cloud zones by updating the
project_zones
object map with additional cloud zones. -
If you want to create multiple projects, repeat steps 2 and 3 for each additional project by duplicating the example in a different working directory.
-
Initialize the current directory and the required Terraform providers.
terraform init
-
Create a Terraform plan and save the output to a file.
terraform plan -out=tfplan
-
Apply the Terraform plan.
terraform apply tfplan