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
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/providers/pulumi/aws.mdx
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,8 +96,8 @@ The Nitric team is working to expand the list of resources that can be imported.
96
96
- [Buckets](/storage)
97
97
98
98
<Note>
99
-
Currently, only resources in the same AWS account and region as the Nitric project
100
-
are supported.
99
+
Currently, only resources in the same AWS account and region as the Nitric
100
+
project are supported.
101
101
</Note>
102
102
103
103
### Buckets
@@ -142,8 +142,8 @@ import:
142
142
```
143
143
144
144
<Note>
145
-
Unlike some other imported resources, secret imports require the ARN to be used.
146
-
Providing only the secret's name will be invalid.
145
+
Unlike some other imported resources, secret imports require the ARN to be
146
+
used. Providing only the secret's name will be invalid.
147
147
</Note>
148
148
149
149
Need to import another resource type or have another question? Chat with us on [Discord](https://nitric.io/chat) or [open an issue](https://github.com/nitrictech/nitric/issues) on GitHub.
@@ -167,7 +167,6 @@ region: my-aws-stack-region
167
167
schedule-timezone: Australia/Sydney # Available since v0.27.0
168
168
169
169
# Import existing AWS Resources
170
-
# Currently only secrets are supported
171
170
# Available since v0.28.0
172
171
import:
173
172
# A name ARN map of buckets, where the name matches the nitric name of the bucket you would like to import
Copy file name to clipboardExpand all lines: docs/providers/terraform/aws.mdx
+45-2Lines changed: 45 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,43 @@ In this example the project name is `api-testing` and the stack name is `aws`.
79
79
80
80

81
81
82
+
83
+
## Importing Existing Resources
84
+
85
+
The Nitric team is working to expand the list of resources that can be imported. Currently, only the following resources are supported:
86
+
87
+
- [Secrets](/secrets)
88
+
89
+
<Note>
90
+
Currently, only resources in the same AWS account and region as the Nitric project
91
+
are supported.
92
+
</Note>
93
+
94
+
### Secrets
95
+
96
+
To import a secret, you will need to know the secret's ARN. You can find the ARN of a secret in the AWS console or by using the AWS CLI.
97
+
98
+
First, add the secret to your project as you usually would if it wasn't imported. Then add the secret to the `import` section of your stack file. Here's an example of how to import a secret:
Unlike some other imported resources, secret imports require the ARN to be used.
114
+
Providing only the secret's name will be invalid.
115
+
</Note>
116
+
117
+
Need to import another resource type or have another question? Chat with us on [Discord](https://nitric.io/chat) or [open an issue](https://github.com/nitrictech/nitric/issues) on GitHub.
118
+
82
119
## Stack Configuration
83
120
84
121
```yaml title:nitric.[stack ID].yaml
@@ -95,8 +132,14 @@ region: my-aws-stack-region
95
132
# Optional outdir
96
133
# outdir: ./tf-output
97
134
98
-
# config:
99
-
# Config (same as base AWS provider except for VPC/Secret imports)
135
+
# Import existing AWS Resources
136
+
# Currently only secrets are supported
137
+
import:
138
+
# A name ARN map of secrets, where the name matches the nitric name of the secret you would like to import
139
+
secrets:
140
+
# In typescript this would import the provided secret reference for a secret declared as
0 commit comments