Skip to content

Commit

Permalink
fix: typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Maed223 authored and ansgarm committed Oct 5, 2023
1 parent 465b823 commit 223af7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/cdktf/concepts/resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ If you have existing resources that you want to manage with CDKTF, you can impor

### How To Import

To import a resource, first instantiate an instance of the resource type you wish to import– in our case we'll be using an S3Bucket. No configuration is explicitly needed. You then call the `importFrom` method on the resource object. This method takes the ID of the resource to be imported as the first argument and the provider as an optional second. The provider is only required if you have multiple providers of the same type in your configuration.
To import a resource, first instantiate an instance of the resource type you wish to import – in our case we'll be using an S3Bucket. No configuration is explicitly needed. You then call the `importFrom` method on the resource object. This method takes the ID of the resource to be imported as the first argument and the provider as an optional second. The provider is only required if you have multiple providers of the same type in your configuration.

```typescript
new S3Bucket(this, "bucket", {}).importFrom(bucketId);
Expand Down

0 comments on commit 223af7b

Please sign in to comment.