Troubleshooting Parameter Store
Use the following information to help you troubleshoot problems with Parameter Store, a tool in Amazon Systems Manager.
Troubleshooting
aws:ec2:image parameter creation
Use the following information to help troubleshoot problems with creating
aws:ec2:image data type parameters.
No permission to create an instance
Problem: You try to create an instance using
an aws:ec2:image parameter but receive an error message such as
"You are not authorized to perform this operation."
-
Solution: You do not have all the permissions needed to create an EC2 instance using a parameter value, such as permissions for
ec2:RunInstances,ec2:DescribeImages, andssm:GetParameter, among others. Contact a user with administrator permissions in your organzation to request the necessary permissions.
EventBridge reports the failure message "Unable to Describe Resource"
Problem: You ran a command to create an
aws:ec2:image parameter, but parameter creation failed. You
receive a notification from Amazon EventBridge that reports the exception "Unable to
Describe Resource".
Solution: This message can indicate the following:
-
You do not have all the permissions needed for the
ec2:DescribeImagesAPI operation, or you lack permission to access the specific image referenced in the parameter. Contact a user with administrator permissions in your organization to request the necessary permissions. -
The Amazon Machine Image (AMI) ID you entered as a parameter value isn't valid. Make sure you're entering the ID of an AMI that is available in the current Amazon Web Services Region and account you're working in.
New aws:ec2:image parameter
isn't available
Problem: You just ran a command to create an
aws:ec2:image parameter and a version number was reported, but
the parameter isn't available.
-
Solution: When you run the command to create a parameter that uses the
aws:ec2:imagedata type, a version number is generated for the parameter right away, but the parameter format must be validated before the parameter is available. This process can take up to a few minutes. To monitor the parameter creation and validation process, you can do the following:-
Use EventBridge to send you notifications about your
createandupdateparameter operations. These notifications report whether a parameter operation was successful or not. For information about subscribing to Parameter Store events in EventBridge, see Setting up notifications or triggering actions based on Parameter Store events. -
In the Parameter Store section of the Systems Manager console, refresh the list of parameters periodically to search for the new or updated parameter details.
-
Use the GetParameter command to check for the new or updated parameter. For example, using the Amazon Command Line Interface (Amazon CLI):
aws ssm get-parameter nameMyParameterFor a new parameter, a
ParameterNotFoundmessage is returned until the parameter is validated. For an existing parameter that you're updating, information about the new version isn't included until the parameter is validated.
If you attempt to create or update the parameter again before the validation process is complete, the system reports that validation is still in process. If the parameter isn't created or updated, you can try again after 5 minutes have passed from the original attempt.
-