You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/scheduler.md
+19-21Lines changed: 19 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
---
2
2
title: "EventBridge Scheduler"
3
-
linkTitle: "EventBridge Scheduler"
4
3
description: Get started with EventBridge Scheduler on LocalStack
5
4
tags: ["Free"]
6
5
---
@@ -12,7 +11,7 @@ You can use EventBridge Scheduler to create schedules that run at a specific tim
12
11
You can also use EventBridge Scheduler to create schedules that run within a flexible time window.
13
12
14
13
LocalStack allows you to use the Scheduler APIs in your local environment to create and run schedules.
15
-
The supported APIs are available on our [API coverage page]({{< ref "coverage_scheduler" >}}), which provides information on the extent of EventBridge Scheduler's integration with LocalStack.
14
+
The supported APIs are available on our [API coverage page](), which provides information on the extent of EventBridge Scheduler's integration with LocalStack.
16
15
17
16
## Getting started
18
17
@@ -26,18 +25,18 @@ We will demonstrate how you can create a new schedule, list all schedules, and t
26
25
You can create a new SQS queue using the [`CreateQueue`](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html) API.
27
26
Run the following command to create a new SQS queue:
You can fetch the Queue ARN using the [`GetQueueAttributes`](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_GetQueueAttributes.html) API.
34
33
Run the following command to fetch the Queue ARN by specifying the Queue URL:
You can view the tags associated with a schedule using the [`ListTagsForResource`](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTagsForResource.html) API.
106
105
Run the following command to list the tags associated with a schedule:
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/secretsmanager.md
+37-38Lines changed: 37 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
---
2
2
title: "Secrets Manager"
3
-
linkTitle: "Secrets Manager"
4
3
description: Get started with Secrets Manager on LocalStack
5
4
persistence: supported
6
5
tags: ["Free"]
@@ -13,7 +12,7 @@ Secrets Manager integrates seamlessly with AWS services, making it easier to man
13
12
Secrets Manager supports automatic secret rotation, replacing long-term secrets with short-term ones to mitigate the risk of compromise without requiring application updates.
14
13
15
14
LocalStack allows you to use the Secrets Manager APIs in your local environment to manage, retrieve, and rotate secrets.
16
-
The supported APIs are available on our [API coverage page]({{< ref "coverage_secretsmanager" >}}), which provides information on the extent of Secrets Manager's integration with LocalStack.
15
+
The supported APIs are available on our [API coverage page](), which provides information on the extent of Secrets Manager's integration with LocalStack.
17
16
18
17
## Getting started
19
18
@@ -26,52 +25,52 @@ We will demonstrate how to create a secret, get the secret value, and rotate the
26
25
27
26
Before your create a secret, create a file named `secrets.json` and add the following content:
28
27
29
-
{{<command>}}
30
-
$ touch secrets.json
31
-
$ cat > secrets.json << EOF
28
+
```bash
29
+
touch secrets.json
30
+
cat > secrets.json <<EOF
32
31
{
33
32
"username": "admin",
34
33
"password": "password"
35
34
}
36
35
EOF
37
-
{{</command>}}
36
+
```
38
37
39
38
You can now create a secret using the [`CreateSecret`](https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_CreateSecret.html) API.
40
39
Execute the following command to create a secret named `test-secret`:
41
40
42
-
{{<command>}}
43
-
$ awslocal secretsmanager create-secret \
41
+
```bash
42
+
awslocal secretsmanager create-secret \
44
43
--name test-secret \
45
44
--description "LocalStack Secret" \
46
45
--secret-string file://secrets.json
47
-
{{</command>}}
46
+
```
48
47
49
48
Upon successful execution, the output will provide you with the ARN of the newly created secret.
50
49
This identifier will be useful for further operations or integrations.
To retrieve the details of the secret you created earlier, you can use the [`DescribeSecret`](https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DescribeSecret.html) API.
@@ -84,29 +83,29 @@ The following output would be retrieved:
84
83
},
85
84
"CreatedDate": 1692882479.857329
86
85
}
87
-
{{</command>}}
86
+
```
88
87
89
88
You can also get a list of the secrets available in your local environment that have **Secret** in the name using the [`ListSecrets`](https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_ListSecrets.html) API.
90
89
Execute the following command:
91
90
92
-
{{<command>}}
93
-
$ awslocal secretsmanager list-secrets \
91
+
```bash
92
+
awslocal secretsmanager list-secrets \
94
93
--filters Key=name,Values=Secret
95
-
{{</command>}}
94
+
```
96
95
97
96
### Get the secret value
98
97
99
98
To retrieve the value of the secret you created earlier, you can use the [`GetSecretValue`](https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html) API.
@@ -117,16 +116,16 @@ The following output would be retrieved:
117
116
],
118
117
"CreatedDate": 1692882479.857329
119
118
}
120
-
{{</command>}}
119
+
```
121
120
122
121
You can tag your secret using the [`TagResource`](https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_TagResource.html) API.
123
122
Execute the following command:
124
123
125
-
{{<command>}}
126
-
$ awslocal secretsmanager tag-resource \
124
+
```bash
125
+
awslocal secretsmanager tag-resource \
127
126
--secret-id test-secret \
128
127
--tags Key=Environment,Value=Development
129
-
{{</command>}}
128
+
```
130
129
131
130
### Rotate the secret
132
131
@@ -136,46 +135,46 @@ You can copy the code from a [Secrets Manager template](https://docs.aws.amazon.
136
135
Zip the Lambda function and create a Lambda function using the [`CreateFunction`](https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html) API.
You can now set a resource policy on the Lambda function to allow Secrets Manager to invoke it using [`AddPermission`](https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html) API.
150
149
151
150
Please note that this is not required with the default LocalStack settings, since IAM permission enforcement is disabled by default.
152
151
153
152
Execute the following command:
154
153
155
-
{{<command>}}
156
-
$ awslocal lambda add-permission \
154
+
```bash
155
+
awslocal lambda add-permission \
157
156
--function-name my-rotation-function \
158
157
--action lambda:InvokeFunction \
159
158
--statement-id SecretsManager \
160
159
--principal secretsmanager.amazonaws.com
161
-
{{</command>}}
160
+
```
162
161
163
162
You can now create a rotation schedule for the secret using the [`RotateSecret`](https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_RotateSecret.html) API.
The LocalStack Web Application provides a Resource Browser for managing secrets in your local environment.
176
175
You can access the Resource Browser by opening the LocalStack Web Application in your browser, navigating to the **Resources** section, and then clicking on **Secrets Manager** under the **Security Identity Compliance** section.
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/serverlessrepo.md
+13-15Lines changed: 13 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
---
2
2
title: "Serverless Application Repository"
3
-
linkTitle: "Serverless Application Repository"
4
-
description: >
5
-
Get started with Serverless Application Repository on LocalStack
3
+
description: Get started with Serverless Application Repository on LocalStack
6
4
tags: ["Ultimate"]
7
5
---
8
6
@@ -13,7 +11,7 @@ Using Serverless Application Repository, developers can build & publish applicat
13
11
Serverless Application Repository provides a user-friendly interface to search, filter, and browse through a diverse catalog of serverless applications.
14
12
15
13
LocalStack allows you to use the Serverless Application Repository APIs in your local environment to create, update, delete, and list serverless applications and components.
16
-
The supported APIs are available on our [API coverage page]({{< ref "coverage_serverlessrepo" >}}), which provides information on the extent of Serverless Application Repository's integration with LocalStack.
14
+
The supported APIs are available on our [API coverage page](), which provides information on the extent of Serverless Application Repository's integration with LocalStack.
17
15
18
16
## Getting started
19
17
@@ -26,9 +24,9 @@ We will demonstrate how to create a SAM application that comprises a Hello World
26
24
27
25
To create a sample SAM application using the `samlocal` CLI, execute the following command:
28
26
29
-
{{< command >}}
30
-
$ samlocal init --runtime python3.9
31
-
{{< /command >}}
27
+
```bash
28
+
samlocal init --runtime python3.9
29
+
```
32
30
33
31
This command downloads a sample SAM application template and generates a `template.yml` file in the current directory.
34
32
The template includes a Lambda function and an API Gateway endpoint that supports a `GET` operation.
@@ -53,11 +51,11 @@ Metadata:
53
51
54
52
Once the Metadata section is added, run the following command to create the Lambda function deployment package and the packaged SAM template:
55
53
56
-
{{< command >}}
54
+
```bash
57
55
samlocal package \
58
56
--template-file template.yaml \
59
57
--output-template-file packaged.yaml
60
-
{{< /command >}}
58
+
```
61
59
62
60
This command generates a `packaged.yaml` file in the current directory containing the packaged SAM template.
63
61
The packaged template will be similar to the original template file, but it will now include a `CodeUri` property for the Lambda function, as shown in the example below:
@@ -74,30 +72,30 @@ Resources:
74
72
75
73
To retrieve the Application ID for your SAM application, you can utilize the [`awslocal`](https://github.com/localstack/awscli-local) CLI by running the following command:
76
74
77
-
{{< command >}}
75
+
```bash
78
76
awslocal serverlessrepo list-applications
79
-
{{< /command >}}
77
+
```
80
78
81
79
In the output, you will observe the `ApplicationId` property in the output, which is the Application ID for your SAM application, along with other properties such as the `Author`, `Description`, `Name`, `SpdxLicenseId`, and `Version` providing further details about your application.
82
80
83
81
### Publish the SAM application
84
82
85
83
To publish your application to the Serverless Application Repository, execute the following command:
86
84
87
-
{{< command >}}
85
+
```bash
88
86
samlocal publish \
89
87
--template packaged.yaml \
90
88
--region us-east-1
91
-
{{< /command >}}
89
+
```
92
90
93
91
### Delete the SAM application
94
92
95
93
To remove a SAM application from the Serverless Application Repository, you can use the following command:
96
94
97
-
{{< command >}}
95
+
```bash
98
96
awslocal serverlessrepo delete-application \
99
97
--application-id <application-id>
100
-
{{< /command >}}
98
+
```
101
99
102
100
Replace `<application-id>` with the Application ID of your SAM application that you retrieved in the previous step.
0 commit comments