QT-DevOps / AWSIssues

Issues with AWS
Apache License 2.0
3 stars 26 forks source link

cannot create a tag #103

Closed tabrez78 closed 4 years ago

tabrez78 commented 4 years ago

aws ec2 create-vpc --cidr-block 192.168.0.0/16 --tag-specifications 'ResourceType=vpc,Tags=[Key=Name,Value=cli-vpc]'

am i using the right syntax to create the tags or do i need to create a tag after creating a resource Unknown options: --tag-specifications, ResourceType=vpc,Tags=[{Key=Name,Value=myvpc}]

ramjagadeeshkumar commented 4 years ago

--tag-specifications (list) In list we can mention name