#Linux Commands
search for word "stuff" in a file called filename and returns all lines with the word "stuff"
grep "stuff" filename.ext
provider "onelogin" { | |
client_id = "xxxxxxxxxxxxxxxxxxxx" | |
client_secret = "xxxxxxxxxxxxxxxxxxxx" | |
url = "https://api.us.onelogin.com" | |
} | |
resource "onelogin_saml_apps" "aws-sample-1"{ | |
connector_id = 50534 | |
name = "AWS Multi Role - Terraform change" | |
description = "AWS Multi Role app created via Terraform" |
{ | |
"updated_at": "2020-05-02T16:17:18Z", | |
"auth_method": 0, | |
"icon_url": "https://cdn.something.net/images/icons/square/5558229540474713/my_icon.png?1427294311", | |
"connector_id": 20938, | |
"role_ids": [], | |
"id": 1023060, | |
"name": "fit bit company portal", | |
"created_at": "2020-05-02T16:17:18Z", | |
"notes": "", |
provider "onelogin" { | |
client_id = "xxxxxxxxxxxxxxxxxxxx" | |
client_secret = "xxxxxxxxxxxxxxxxxxxx" | |
url = "https://api.us.onelogin.com" | |
} | |
resource "onelogin_saml_apps" "aws-console"{ | |
connector_id = 50534 | |
name = "AWS Multi Role App" | |
description = "AWS Multi Role app created via Terraform" |
package onelogin | |
import ( | |
"errors" | |
"os" | |
"testing" | |
"github.com/hashicorp/terraform-plugin-sdk/helper/schema" | |
"github.com/hashicorp/terraform-plugin-sdk/terraform" | |
) |
package onelogin | |
import ( | |
"testing" | |
"github.com/hashicorp/terraform-plugin-sdk/helper/resource" | |
) | |
func TestAccApp_crud(t *testing.T) { | |
base := GetFixture("onelogin_app_example.tf", t) |
package main | |
import ( | |
"github.com/hashicorp/terraform-plugin-sdk/plugin" | |
"github.com/onelogin/onelogin-terraform-provider/onelogin" | |
) | |
func main() { | |
plugin.Serve(&plugin.ServeOpts{ | |
ProviderFunc: onelogin.Provider, |
OUTPUT FROM TERRAFORM REFRESH | |
2020/04/28 12:19:00 [INFO] Terraform version: 0.12.24 | |
2020/04/28 12:19:00 [INFO] Go runtime version: go1.13.8 | |
2020/04/28 12:19:00 [INFO] CLI args: []string{"/usr/local/bin/terraform", "refresh"} | |
2020/04/28 12:19:00 [DEBUG] Attempting to open CLI config file: /Users/dominickcaponi/.terraformrc | |
2020/04/28 12:19:00 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/04/28 12:19:00 [DEBUG] checking for credentials in "/Users/dominickcaponi/.terraform.d/plugins" | |
2020/04/28 12:19:00 [DEBUG] checking for credentials in "/Users/dominickcaponi/.terraform.d/plugins/darwin_amd64" | |
2020/04/28 12:19:00 [INFO] CLI command args: []string{"refresh"} |
# onelogin_apps.basic will be created | |
+ resource "onelogin_apps" "basic" { | |
+ allow_assumed_signin = false | |
2020/04/28 12:16:47 [DEBUG] command: asking for input: "Do you want to perform these actions?" | |
+ auth_method = (known after apply) | |
+ connector_id = 20938 | |
+ created_at = (known after apply) | |
+ icon_url = (known after apply) | |
+ id = (known after apply) | |
+ name = "Form-Based fff" |