This file contains hidden or 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
output "primary_vpc_id" { | |
value = "${data.aws_vpc.primary.id}" | |
} | |
output "private_a_subnet_id" { | |
value = "${data.aws_subnet.private_a.id}" | |
} | |
output "web_proxy_sg_id" { | |
value = "${data.aws_security_group.web_proxy.id}" |
This file contains hidden or 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
resource "aws_ami_copy" "amazon-linux-2-encrypted" { | |
name = "${data.aws_ami.amazon-linux-2.name}-encrypted" | |
description = "${data.aws_ami.amazon-linux-2.description} (encrypted)" | |
source_ami_id = "${data.aws_ami.amazon-linux-2.id}" | |
source_ami_region = "${var.region}" | |
encrypted = true | |
tags { | |
ImageType = "encrypted-amzn2-linux" | |
} |
This file contains hidden or 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
resource "aws_ami_copy" "ubuntu-18_04-encrypted" { | |
name = "${data.aws_ami.ubuntu-18_04.name}-encrypted" | |
description = "${data.aws_ami.ubuntu-18_04.description} (encrypted)" | |
source_ami_id = "${data.aws_ami.ubuntu-18_04.id}" | |
source_ami_region = "${var.region}" | |
encrypted = true | |
tags { | |
ImageType = "encrypted-ubuntu-18_04" | |
} |
This file contains hidden or 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
resource "aws_ami_copy" "ubuntu-16_04-encrypted" { | |
name = "${data.aws_ami.ubuntu-16_04.name}-encrypted" | |
description = "${data.aws_ami.ubuntu-16_04.description} (encrypted)" | |
source_ami_id = "${data.aws_ami.ubuntu-16_04.id}" | |
source_ami_region = "${var.region}" | |
encrypted = true | |
tags { | |
ImageType = "encrypted-ubuntu-16_04" | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>What is my IP?</title> | |
<script type="text/javascript"> | |
function reqListener () { | |
var response = JSON.parse(this.responseText); | |
document.getElementById("ip").innerText = | |
'Your public IP is ' + response.origin; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>URL Encoded Base 64 Decoder</title> | |
<script type="text/javascript"> | |
function decode() { | |
var urlDecoded = decodeURIComponent(document.getElementById('urlencoded-base64-input').value); | |
var base64Decoded = atob(urlDecoded); | |
var encodedStr = base64Decoded.replace(/[\u00A0-\u9999<>\&]/gim, function(i) { | |
return '&#' + i.charCodeAt(0) + ';'; |
This file contains hidden or 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
ServerAliveInterval 60 | |
# bastions are permanent or semi-permanent | |
# connections should be minimized | |
# host key changes should not be accepted (pre-populate known_hosts with them) | |
Host *-bastion | |
ControlMaster auto | |
ControlPath /Users/your.username/.ssh/tmp/%h_%p_%r | |
StrictHostKeyChecking yes |
This file contains hidden or 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
server{ | |
server_name salesforce.example.com; | |
rewrite ^/(.*) https://example.okta.com/app/salesforce/exkabcdef123451t7/sso/saml permanent; | |
} |
This file contains hidden or 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
[ | |
{ | |
"id": "tabWORK_TAB_ID", | |
"label": "Work", | |
"sortOrder": 0, | |
"lastUpdated": "2018-06-03T14:30:45.000Z", | |
"created": "2018-06-03T14:30:45.000Z", | |
"_links": { | |
"self": { | |
"href": "https://example.okta.com/api/v1/users/me/home/tabs/tabWORK_TAB_ID", |
This file contains hidden or 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
import com.okta.sdk.clients.AppUserTypeApiClient; | |
import com.okta.sdk.clients.UserProfileMappingApiClient; | |
import com.okta.sdk.clients.UserTypeApiClient; | |
import com.okta.sdk.framework.ApiClientConfiguration; | |
import com.okta.sdk.framework.PagedResults; | |
import com.okta.sdk.framework.PaginationUtils; | |
import com.okta.sdk.models.directory.AppUserType; | |
import com.okta.sdk.models.directory.UserProfileMapping; | |
import com.okta.sdk.models.directory.UserProfilePropertyMapping; |