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

bug: Creating secrets using secretManager ignores the region in localstack-pro #10729

Open
1 task done
hemachandran-kalaimani opened this issue Apr 26, 2024 · 1 comment
Open
1 task done
Assignees
Labels
aws:secretsmanager AWS Secrets Manager status: backlog Triaged but not yet being worked on type: bug Bug report

Comments

@hemachandran-kalaimani
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When a secret is being created with awslocal in one region, it is always end up creating the secret in the default region.

Command used:

awslocal  \
          --region "us-west-2" \
          secretsmanager create-secret --name "my-secret" \
          --no-verify-ssl \
          --no-sign-request \
          --secret-string 'my-secret-string'
{
     "ARN": "arn:aws:secretsmanager:us-east-1:000000000000:secret:my-secret-SbhQdy",
     "Name": "my-secret",
     "VersionId": "e8c399b2-41e3-4e88-bbf8-e47293e0315d"
 }

Expected Behavior

Creating a secret in a region should result in a secret being created in the same region;

{
     "ARN": "arn:aws:secretsmanager:us-west-2:000000000000:secret:my-secret-SbhQdy",
     "Name": "my-secret",
     "VersionId": "e8c399b2-41e3-4e88-bbf8-e47293e0315d"
 }

How are you starting LocalStack?

With the localstack script

Steps To Reproduce

awslocal
--region "us-west-2"
secretsmanager create-secret --name "my-secret"
--no-verify-ssl
--no-sign-request
--secret-string 'my-secret-string'

Environment

- OS:
- LocalStack:

Anything else?

No response

@hemachandran-kalaimani hemachandran-kalaimani added status: triage needed Requires evaluation by maintainers type: bug Bug report labels Apr 26, 2024
@localstack-bot
Copy link
Collaborator

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

@macnev2013 macnev2013 self-assigned this Apr 26, 2024
@MarcelStranak MarcelStranak added aws:secretsmanager AWS Secrets Manager status: backlog Triaged but not yet being worked on and removed status: triage needed Requires evaluation by maintainers labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:secretsmanager AWS Secrets Manager status: backlog Triaged but not yet being worked on type: bug Bug report
Projects
None yet
Development

No branches or pull requests

4 participants