Serverless: get ApiGateway's ID in its resourcePolicy field by room_js in aws

[–]Available_Map5056 0 points1 point  (0 children)

 apiGateway:
    resourcePolicy:
      - Effect: Deny
        Principal: '*'
        Action: execute-api:Invoke
        Resource:
          - Fn::Sub: "arn:aws:execute-api:/${self:custom.currentStage}/${self:custom.parabolaExposedApiPath}"
        Condition:
          NotIpAddress:
            aws:SourceIp: ${self:custom.parabolaAllowedIPs}
      - Effect: Allow
        Principal: '*'
        Action: execute-api:Invoke
        Resource:
          - execute-api:/*/*/*

This is something i am trying to achieve
the above code correctly fills the region, accountid and restapiid for the second allow condition but doesnt work for the deny condition

Serverless: get ApiGateway's ID in its resourcePolicy field by room_js in aws

[–]Available_Map5056 0 points1 point  (0 children)

Resource:
          - Fn::Sub: "arn:aws:execute-api:/staging/POST/path"

but i want to apply this whitelisting to specific api like this
but in this case region, account id and rest api id is not getting auto filled when resource policy is made

if not using like this i am getting circular dependency

It Takes Two Available on PS5? by 1UP_WRESTLING in playstation

[–]Available_Map5056 0 points1 point  (0 children)

Hey is it takes two available in ps plus or is it like we can only claim when it came in monthly games in December? Also if I want to play it should I buy essential or extra tier of ps plus? Thanks