Skip to content

Variables: Introduce access to resolved AWS accountId and region #9005

Closed

Description

@garethmcc

Use case description

When configuring a serverless.yml file, sometimes you may need to include the account ID or region for an AWS account in a way that doesn't resolve using CFN syntax. The only way to reliably do so is to inject the account ID using external key/value mechanisms such as dashboard params, environment variables, ssm, etc.

Proposed solution

The ability to reference a built in variable that resolves to the correct account ID or region. For example:

custom:
  awsAccountId: ${aws:accountId}
  awsRegion: ${aws:region}

Activity

  1. corydorning53 commented on Mar 30, 2021

    @corydorning53

    any update on this? having same issue now that the pseudo parameter plugin is deprecated. :/

  2. changed the title [-]AWS account specific variable shortcuts ${aws:accountId} and ${aws:region}[/-] [+]Variabeles: Introduce access to resolved AWS `accountId` and `region` (via `aws:..`)[/+] on Apr 12, 2021
  3. changed the title [-]Variabeles: Introduce access to resolved AWS `accountId` and `region` (via `aws:..`)[/-] [+]Variables: Introduce access to resolved AWS `accountId` and `region` (via `aws:..`)[/+] on Apr 12, 2021
  4. added this to the v3-ready milestone on Jun 24, 2021
  5. changed the title [-]Variables: Introduce access to resolved AWS `accountId` and `region` (via `aws:..`)[/-] [+]Variables: Introduce access to resolved AWS `accountId` and `region`[/+] on Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions