Skip to content

Use awslocal from my host to localstack and use it into localstack container #250

@Laurent45

Description

@Laurent45

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions