aws-sdk-js-automation on v2.514.0
aws-sdk-js-automation on master
Updates SDK to v2.514.0 (compare)
awaited, and we have a policy of not mixing callbacks and promises
@cpmech I have spent a good amount of time in cloudformation docs - and I find many of them "significantly hurried" - but as it relates to a physicalID - I think that is contrast to a Logical ID that you might have named it in a CFM template.
For Ref - relating to GatewayRest example: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html
@ericdmoore Thanks for the reply. What I meant is that the Ref turns out to be exactly the same as the PhysicalID (always). For example, in this template:
AWSTemplateFormatVersion: 2010-09-09 Description: An example template for a Step Functions state machine. Resources: MyPolicy: Type: 'AWS::IAM::Policy' Properties: PolicyName: 'CFNUsers' PolicyDocument: Version: '2012-10-17' Statement: - Effect: 'Allow' Action: - 'cloudformation:Describe*' - 'cloudformation:List*' - 'cloudformation:Get*' Resource: '*' Groups: - 'temporary' Outputs: RefOfMyPolicy: Value: !Ref MyPolicy
MyPolicy and the resource name for AWS::IAM::Policy will equal the PhysicalID.
I've checked manually that
Ref(AWS::StepFunctions::StateMachine) = ARN = PhysicalID Ref(AWS::SQS::Queue) = Queue URL = PhysicalID Ref(AWS::Cognito::UserPool) = generated ID = PhysicalID Ref(AWS::ApiGateway::RestApi) = Rest API ID = PhysicalID Ref(AWS::EC2::Instance) = instance ID = PhysicalID Ref(AWS::S3::Bucket) = resource name = PhysicalID Ref(AWS::IAM::Policy) = resource name = PhysicalID
Also, there is an experiment here showing that the Ref becomes the PhysicalID always: https://gist.github.com/danp3d/386d7a249c49704601a14345f2d5ce43
In this experiment, it looks like the !Ref function always returns the PhysicalResourceId.
So, I've found that Ref => PhysicalID. I'm wondering if there is some place in the Cloudformation doc explaining the meaning of the PhysicalID for any resource?
Or, is there a place mentioning the fact that Ref = PhysicalID?
AWS was not able to validate the provided access credentials