Skip to content

Commit c56e459

Browse files
Apply documentation review suggestions
- Improve grammar in line 199 by adding comma after 'succeed' - Replace 'import-update' terminology with clearer phrasing on line 220 - Change code block language tag from console to bash on line 201 Co-authored-by: Ian Wahbe <iwahbe@users.noreply.github.com>
1 parent 73cf483 commit c56e459

File tree

1 file changed

+3
-3
lines changed
  • content/docs/iac/concepts/resources/options

1 file changed

+3
-3
lines changed

content/docs/iac/concepts/resources/options/import.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ resources:
196196
197197
For this to work, your Pulumi stack must be configured correctly. In this example, it’s important that the AWS region is correct.
198198
199-
If the resources arguments differ from the imported state, the import will succeed and then the resource will be modified to reflect the inputs in your Pulumi program.
199+
If the resource's arguments differ from the imported state, the import will succeed, and the resource will then be modified to reflect the inputs in your Pulumi program.
200200
201-
```console
201+
```bash
202202
$ pulumi preview
203203
Previewing update (dev)
204204

@@ -216,6 +216,6 @@ Resources:
216216
2 changes. 2 unchanged
217217
```
218218
219-
Because of auto-naming, it is common to run into this import-update when you import a resources name property. Unless you explicitly specify a name, Pulumi will auto-generate one, which is guaranteed not to match, because it will have a random hex suffix. To fix this problem, explicitly specify the resources name or disable auto-naming [as described here](/docs/iac/concepts/resources/names/#autonaming-configuration). Note that, in the example for the EC2 security group, the name was specified by passing `web-sg-62a569b` as the resources name property.
219+
Because of auto-naming, it is common to see this update during import when you import a resource's name property. Unless you explicitly specify a name, Pulumi will auto-generate one, which is guaranteed not to match, because it will have a random hex suffix. To fix this problem, explicitly specify the resource's name or disable auto-naming [as described here](/docs/iac/concepts/resources/names/#autonaming-configuration). Note that, in the example for the EC2 security group, the name was specified by passing `web-sg-62a569b` as the resource's name property.
220220

221221
Once a resource is successfully imported, remove the `import` option because Pulumi is now managing the resource.

0 commit comments

Comments
 (0)