Skip to content

secret:create: --aws-account and --region options - #66

Open
mnapoli wants to merge 2 commits into
mainfrom
claude/bref-secret-create-noninteractive-t7bigd
Open

mnapoli wants to merge 2 commits into
mainfrom
claude/bref-secret-create-noninteractive-t7bigd

Conversation

@mnapoli

@mnapoli mnapoli commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

bref secret:create on an environment that isn't deployed yet asked for the AWS account and region with prompts, so it failed with --no-interaction (CI, agents), on the path the docs recommend: create APP_KEY, then deploy.

  • new --aws-account (name of the AWS account in Bref Cloud) and --region options, only used when the environment isn't deployed yet
  • the region defaults to the one in the config file (provider.region in serverless.yml), the AWS account to the team's only account
  • without a value and without interaction: an error naming the option to set
  • the AWS accounts are now filtered on the team (the API returns those of all the user's teams)

No Cloud change needed: POST /api/v1/secrets already takes aws_account_id and region.

Docs: brefphp/bref#2243

…s not deployed yet

Default to the region of the config file and to the team's only AWS account, and fail with a clear error under --no-interaction when a value cannot be resolved. The AWS accounts are now filtered on the team.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant