-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for SSH install: iam-write (#7)
- Loading branch information
Showing
13 changed files
with
589 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "p0_ssh_aws Resource - p0" | ||
subcategory: "" | ||
description: |- | ||
An AWS SSH Installation. | ||
Installing SSH allows you to manage access to your servers on AWS. | ||
--- | ||
|
||
# p0_ssh_aws (Resource) | ||
|
||
An AWS SSH Installation. | ||
|
||
Installing SSH allows you to manage access to your servers on AWS. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "p0_ssh_aws" "example" { | ||
account_id = "123456789012" | ||
group_key = "vegetables" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `account_id` (String) The AWS account ID | ||
|
||
### Optional | ||
|
||
- `group_key` (String) If present, AWS instances will be grouped by the value of this tag. Access can be requested, in one request, to all instances with a shared tag value | ||
- `label` (String) The AWS account's alias (if available) | ||
|
||
### Read-Only | ||
|
||
- `state` (String) This account's install progress in the P0 application: | ||
- 'stage': The account has been staged for installation | ||
- 'configure': The account is available to be added to P0, and may be configured | ||
- 'installed': The account is fully installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "p0_ssh_gcp Resource - p0" | ||
subcategory: "" | ||
description: |- | ||
A Google Cloud SSH installation. | ||
Installing SSH allows you to manage access to your servers on Google Cloud. | ||
--- | ||
|
||
# p0_ssh_gcp (Resource) | ||
|
||
A Google Cloud SSH installation. | ||
|
||
Installing SSH allows you to manage access to your servers on Google Cloud. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "p0_ssh_gcp" "example" { | ||
project_id = "my-project" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `project_id` (String) The Google Cloud project ID | ||
|
||
### Read-Only | ||
|
||
- `label` (String) The Google Cloud project's alias (if available) | ||
- `state` (String) This account's install progress in the P0 application: | ||
- 'stage': The account has been staged for installation | ||
- 'configure': The account is available to be added to P0, and may be configured | ||
- 'installed': The account is fully installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resource "p0_ssh_aws" "example" { | ||
account_id = "123456789012" | ||
group_key = "vegetables" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
resource "p0_ssh_gcp" "example" { | ||
project_id = "my-project" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
package installaws | ||
|
||
import "regexp" | ||
import ( | ||
"regexp" | ||
|
||
var Aws = "aws" | ||
installresources "github.com/p0-security/terraform-provider-p0/internal/provider/resources/install" | ||
) | ||
|
||
var IamWrite = "iam-write" | ||
var Inventory = "inventory" | ||
const ( | ||
Aws = "aws" | ||
Inventory = "inventory" | ||
) | ||
|
||
// All installable AWS components. | ||
var Components = []string{IamWrite, Inventory} | ||
var Components = []string{installresources.IamWrite, Inventory} | ||
|
||
var AwsAccountIdRegex = regexp.MustCompile(`^\d{12}$`) | ||
var AwsIdpPattern = regexp.MustCompile(`^[\w.-/]+$`) | ||
var OktaAppIdRegex = regexp.MustCompile(`^0o\w+$`) | ||
|
||
const AwsLabelMarkdownDescription = "The AWS account's alias (if available)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.