Skip to content

Commit 83cc0b4

Browse files
chore: Adding SSM Layer Arn Instructions to Docs (#2486)
* adding ssm layer arn instructions * docs formatting
1 parent c80bab3 commit 83cc0b4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
241 KB
Loading

docs/source/install.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,28 @@ For example: ``arn:aws:lambda:us-east-1:336392948345:layer:AWSSDKPandas-Python38
7979

8080
The full list of ARNs is available `here <layers.rst>`__.
8181

82+
Layer ARNs can also be obtained from SSM public parameters.
83+
84+
**Console:**
85+
86+
.. image:: _static/ssm_public_parameters.png
87+
:alt: SSM Public Parameters
88+
89+
**CLI:**
90+
Find all layers for a version of the library within a region.
91+
92+
.. code-block:: sh
93+
94+
aws ssm describe-parameters --parameter-filters "Key=Name, Option=BeginsWith, Values=/aws/service/aws-sdk-pandas/3.4.0/us-west-2/"
95+
96+
**CDK:**
97+
98+
.. code-block:: python
99+
100+
sdk_for_pandas_layer_arn = ssm.StringParameter.from_string_parameter_attributes(self, "MyValue",
101+
parameter_name="/aws/service/aws-sdk-pandas/3.4.0/us-west-2/py3.10/x86_64/layer-arn"
102+
).string_value
103+
82104
Custom Layer
83105
^^^^^^^^^^^^^^
84106

0 commit comments

Comments
 (0)