Home › Forums › AWS › AWS Certified SysOps Administrator Associate › AWS Certified SysOps Administrator Associate Practice Exams 2022Exam Lab #2 –
-
AWS Certified SysOps Administrator Associate Practice Exams 2022Exam Lab #2 –
Carlo-TutorialsDojo updated 2 years, 9 months ago 2 Members · 2 Posts -
Hello,
I found that AWS Certified SysOps Administrator Associate Practice Exams 2022Exam Lab #2 – Updating a CloudFormation Stack, at Instruction #2 as below, that has problem, when Upload a template file that add these change, the system is saying ”Unresolved resource dependencies [ProdEC2Instance] in the Outputs block of the template”.
Please check it.
Thanks
Tyler
=======================
Resources:
myVPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
EnableDnsSupport: ‘false’
EnableDnsHostnames: ‘false’
InstanceTenancy: default
Tags:
– Key: env
Value: td-lab
Outputs:
ProdInstanceID:
Description: “Production instance ID.”
Value: !Ref ProdEC2Instance
Export:
Name: ‘ProdEc2Instance’
=======================
INSTRUCTION #2 – Create an Output to export the resource ID of the
ProdEC2Instance
to allow cross-stack references.Add this code after the Resources section to export the instance ID of the
ProdEC2Instance
. The Value property returns the ID of the referenced instance, in this case, theProdEC2Instance
.Outputs: ProdInstanceID: Description: "Production instance ID." Value: !Ref ProdEC2Instance Export: Name: 'ProdEc2Instance'
-
Hello Tyler,
Please check if the CloudFormation template that you’re uploading is correct. Based on what you shared, it appears that some resources including the ‘ProdEC2Instance’ are missing from your template.
Regards,
Carlo @ Tutorials Dojo
Log in to reply.