What does the following AWS CLI create-service command for ECS do?

Digital Marketing, LinkedIn Amazon Web Services (AWS) Skill Quiz Answers

You no longer need to be worried if you are taking the LinkedIn Amazon Web Services (AWS) Skill Quiz Exam and are unsure about the proper answer to the question “What does the following AWS CLI create-service command for ECS do?”. I have provided the right answer to your question below.

What does the following AWS CLI create-service command for ECS do?

aws ecs create-service \

–cluster production \

–service-name rest-api \

–task-definition rest-api:1 \

–desired-count 2 \

–launch-type “FARGATE” \

–network-configuration \

“awsvpcConfiguration={subnets=[subnet-0b29129ab],securityGroups=[sg-0b29129ab]}”

Options

  • creates a cluster called production and launches two containers into Fargate with the rest-api task definition
  • changes the security groups of the running rest-api task
  • creates a service definition for the rest-api task; put two containers on the production cluster when launched ecs-cli up command
  • launches two containers onto Fargate into the existing production cluster using the rest-api task definition

The Correct Answer Is:

  • launches two containers onto Fargate into the existing production cluster using the rest-api task definition

Conclusion

I believe I was successful in answering your query “What does the following AWS CLI create-service command for ECS do?”. I hope you easily pass the certification exam and get the certificate as soon as possible. Have a great time! Good luck!