Skip to content

Commit

Permalink
chore(tf): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
eladb committed Sep 16, 2024
1 parent 24190dd commit 4588cf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ Represents an arbitrary Terraform resource.

> `tf.Resource` can only be used when compiling your Wing program to a `tf-*` target.
It takes a `type` and `attributes` properties:
It takes a `terraformResourceType` and `attributes` properties, as well as all the properties of the `TerraformResource`
class from CDKTF.

```js
bring tf;

let role = new tf.Resource({
type: "aws_iam_role",
terraformResourceType: "aws_iam_role",
attributes: {
inline_policy: {
name: "lambda-invoke",
Expand Down

0 comments on commit 4588cf7

Please sign in to comment.