# Specify an AWS "built-in" Layer for a Lambda

**URL:** <https://discuss.hashicorp.com/t/specify-an-aws-built-in-layer-for-a-lambda/45719>\
**Category:** AWS\
**Created:** [October 17, 2022, 8:23pm UTC](https://discuss.hashicorp.com/t/specify-an-aws-built-in-layer-for-a-lambda/45719 "2022-10-17T20:23:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbush](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rbush/32/29828_2.png) [@rbush](https://discuss.hashicorp.com/u/rbush)\
**Post date:** [October 17, 2022, 8:23pm UTC](https://discuss.hashicorp.com/t/specify-an-aws-built-in-layer-for-a-lambda/45719/1 "2022-10-17T20:23:51Z")

</div>

Greetings, I am attempting to use an AWS maintained arn for a Lambda Layer’s source. Would the below configuration be best practice or would it even work?

```auto
resource "aws_lambda_layer_version" "lambda_layer" {
  #filename = "python37-pandas.zip"
  layer_name = "aws-pandas-py38-layer"
  compatible_runtimes = ["python3.8"]
  arn = "arn:aws:lambda:us-east-1:336392948345:layer:AWSSDKPandas-Python38:1"
}

module "lambda_test" {
   ...
  layers = [aws_lambda_layer_version.lambda_layer.arn]
  environment = {    
    variables = {
      destination_bucket_name = "us-east-1-silver-sbx-${terraform.workspace}"
    }
  }
}

```

As a sidenote, could I specify a static layer arn directly on the lambda module?

---

<div class="post-metadata">

**Author:** ![rbush](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rbush/32/29828_2.png) [@rbush](https://discuss.hashicorp.com/u/rbush)\
**Post date:** [October 19, 2022, 1:40pm UTC](https://discuss.hashicorp.com/t/specify-an-aws-built-in-layer-for-a-lambda/45719/2 "2022-10-19T13:40:41Z")

</div>

I solved it. Since layers is an array of arn, I can simply apply the arn to the layer:

> layers = [“arn:aws:lambda:us-east-1:336392948345:layer:AWSSDKPandas-Python38:1”]
