Skip to content

Commit 2b146b1

Browse files
authored
Add published ARN (hashicorp#8)
1 parent 3390e64 commit 2b146b1

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ starts to execute. To use it, include the following ARN as a layer in your
77
Lambda function:
88

99
```text
10-
TBD
10+
arn:aws:lambda:us-east-1:634166935893:layer:vault-lambda-extension:6
1111
```
1212

13+
Where region may be any of `ap-northeast-1`, `ap-northeast-2`, `ap-south-1`,
14+
`ap-southeast-1`, `ap-southeast-2`, `ca-central-1`, `eu-central-1`,
15+
`eu-west-1`, `eu-west-2`, `eu-west-3`, `sa-east-1`, `us-east-1`, `us-east-2`,
16+
`us-west-1`, `us-west-2`.
17+
1318
The extension authenticates with Vault using [AWS IAM auth][vault-aws-iam-auth],
1419
and writes the result as JSON to disk. It also writes a vault token to
1520
`/tmp/vault/token`. All configuration is supplied via environment variables.
@@ -48,7 +53,7 @@ vault write auth/aws/role/vault-lambda-role \
4853
Add the extension to your Lambda layers using the console or [cli][lambda-add-layer-cli]:
4954

5055
```text
51-
TBD
56+
arn:aws:lambda:<your-region>:634166935893:layer:vault-lambda-extension:6
5257
```
5358

5459
Configure the extension using [Lambda environment variables][lambda-env-vars]:

quick-start/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Creates the infrastructure required for running a demo of the Vault Lambda exten
99
* A Lambda function which requests database credentials from the extension and then uses them to list users on the database
1010

1111
**NB: This demo will create real infrastructure in AWS with an associated
12-
cost. Make sure you tear down the infrastructure once you are finished with
12+
cost. Make sure you tear down the infrastructure once you are finished with
1313
the demo.**
1414

1515
**NB: This is not a production-ready deployment, and is for demonstration

quick-start/terraform/lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "aws_lambda_function" "function" {
55
filename = "../demo-function/demo-function.zip"
66
handler = "main"
77
runtime = "provided.al2"
8-
layers = ["arn:aws:lambda:us-east-1:634166935893:layer:vault-lambda-extension-test:4"]
8+
layers = ["arn:aws:lambda:${var.aws_region}:634166935893:layer:vault-lambda-extension:6"]
99

1010
environment {
1111
variables = {

0 commit comments

Comments
 (0)