Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples and documentation for AWS Installation Resource #45

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If you are using a local build of the P0 API server, you can also set that in yo

```
provider "p0" {
org = "p0-nathan"
host = "http://localhost:8088/"
org = "org-id"
host = "http://my-custom-host/"
}
```
6 changes: 6 additions & 0 deletions docs/resources/aws_iam_write_staged.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ A staged AWS IAM-management installation. Staged resources are used to generate

**Important** Before using this resource, please read the instructions for the 'aws_iam_write' resource.

## Example Usage

```terraform
resource "p0_aws_iam_write_staged" "example" {
id = "123456789012"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
22 changes: 22 additions & 0 deletions examples/resources/p0_aws_iam_write_staged/federated.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
resource "p0_aws_iam_write_staged" "example_staged" {
id = "123456789012"
}

resource "p0_aws_iam_write" "example" {
depends_on = [p0_aws_iam_write_staged.example_staged]
id = p0_aws_iam_write_staged.example_staged.id
login = {
type = "federated"
provider = {
type = "okta"
app_id = "0abcdefghijKlmNOp123"
GGonryun marked this conversation as resolved.
Show resolved Hide resolved
identity_provider = "p0_example_okta"
method = {
type = "saml"
account_count = {
type = "single"
}
}
}
}
}
3 changes: 3 additions & 0 deletions examples/resources/p0_aws_iam_write_staged/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "p0_aws_iam_write_staged" "example" {
id = "123456789012"
}
4 changes: 0 additions & 4 deletions examples/resources/p0_aws_staged/resource.tf

This file was deleted.

Loading