Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

in creating instance pool

edited Sep 11, 2021 9:57PM in OCI - General 7 comments

Summary

I need example on --placement-configurations !

Content

Hi

I am trying to create instance pool using CLI

In the official documentation here, I didn't find any example on how to construct the JSON of --placement-configuration

Using the following github, I wrote the following command .

oci compute-management instance-pool create \
--compartment-id ocid1.compartment.oc1..aaaaaaaatjgxskafoz7jsiedme2rex556ari3oscf4iagtyubbzqjnwjoeja \
--instance-configuration-id ocid1.instanceconfiguration.oc1.iad.aaaaaaaaybjwyak23w4yzw6zvgcwtukbcvw44zndtbegouqy6yclr7mkebmq \
--size 3 \
--placement-configurations [{"availabilityDomain": "ocid1.availabilitydomain.oc1..aaaaaaaauvt2n7pijol7uqgdnnsoojcukrijtmcltvfwxazmitk235wyohta", "primarySubnetId": "ocid1.subnet.oc1.iad.aaaaaaaasoc4comb6zsyxzthl7jeqmre4hk2phdd5oi7sdvcmuw6atxk6pbq"}]

However, I am getting the following error

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!