serverless-localstack
serverless-localstack copied to clipboard
Use awslocal from my host to localstack and use it into localstack container
trafficstars
Hello everyone. I'm a little bit confused. I deployed an apiGateway with serverless-localstack and everything is done successfully. When I check my APG with this command
awslocal apigateway get-rest-apis
I have two different results according to my place. When I run this command in my host, I have this result:
{
"items": []
}
And when I run this in the localstack container, I have this:
{
"items": [
{
"id": "hlbyuah2x3",
"name": "OcBridgeApi",
"createdDate": 1711038902.0,
"apiKeySource": "HEADER",
"endpointConfiguration": {
"types": [
"EDGE"
]
},
"tags": {
"aws:cloudformation:logical-id": "OcBridgeApi",
"aws:cloudformation:stack-name": "users-dev",
"aws:cloudformation:stack-id": "arn:aws:cloudformation:us-east-1:000000000000:stack/users-dev/b5c34ab6"
},
"disableExecuteApiEndpoint": false
}
]
}
Can somebody please explain it to me, please?