Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localstack goes with single port #16

Open
ozbillwang opened this issue May 2, 2020 · 1 comment
Open

localstack goes with single port #16

ozbillwang opened this issue May 2, 2020 · 1 comment

Comments

@ozbillwang
Copy link

ozbillwang commented May 2, 2020

the latest release of localstack supports single port 4566 for all local endpoint services localhost:4566

How can I set it in aws cli configuraiton?

From

$ more ~/.aws/credentials
# localstack test
# https://github.com/localstack/localstack
[localstack]
region                = ap-southeast-2
aws_secret_access_key = localstack
aws_access_key_id     = localstack

$ more ~/.aws/config
[plugins]
endpoint = awscli_plugin_endpoint

# https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html
[profile localstack]
apigateway =
    endpoint_url = http://localhost:4567
kinesis =
    endpoint_url = http://localhost:4568
dynamodb =
    endpoint_url = http://localhost:4569
s3 =
    endpoint_url = http://localhost:4572
firehose =
    endpoint_url = http://localhost:4573
lambda =
    endpoint_url = http://localhost:4574
sns =
    endpoint_url = http://localhost:4575
sqs =
    endpoint_url = http://localhost:4576
redshift =
    endpoint_url = http://localhost:4577
elasticsearch =
    endpoint_url = http://localhost:4578
ses =
    endpoint_url = http://localhost:4579
route53 =
    endpoint_url = http://localhost:4580
cloudformation =
    endpoint_url = http://localhost:4581
cloudwatch =
    endpoint_url = http://localhost:4582
ssm =
    endpoint_url = http://localhost:4583
secretsmanager =
    endpoint_url = http://localhost:4584
stepfunctions =
    endpoint_url = http://localhost:4585
eventbridge =
    endpoint_url = http://localhost:4587
sts =
    endpoint_url = http://localhost:4592
iam =
    endpoint_url = http://localhost:4593
ec2 =
    endpoint_url = http://localhost:4597
kms =
    endpoint_url = http://localhost:4599

to

$ more ~/.aws/config
[plugins]
endpoint = awscli_plugin_endpoint

[profile localstack]
endpoint_url = http://localhost:4566

aws/aws-cli#1270 (comment)

@wbingli
Copy link
Owner

wbingli commented Jul 22, 2020

It's a good idea. Basically you want to have a default endpoint_url for all service endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants