i created a template in which i have Ec2 instance and volume in same template and then i want to attach that volume in that ec2 but it gives volumn don’t exist event i used dependOn parameters.
VolumeAttachment: Type: AWS::EC2::VolumeAttachment DependsOn: PowerBIDesktopVolumeAttach Properties: InstanceId: !Ref EC2Instance VolumeId: !Ref VolumeAttach Device: "xvdb"
can anyone help me in this.
also try dependOn method
Harshdeep _079 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.