Skip to content

Instantly share code, notes, and snippets.

View hisashiyamaguchi's full-sized avatar

Hisashi Yamaguchi hisashiyamaguchi

View GitHub Profile
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::976280145156:root"
},
"Action": "sts:AssumeRole",
{
"AWSTemplateFormatVersion":"2010-09-09",
"Outputs":{
"OrcaRoleArn":{
"Value":{
"Fn::GetAtt":[
"OrcaSecurityRole",
"Arn"
]
}
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"subscriptionsToOnboard": {
"type": "array",
"defaultValue": [
"5a7e9c2f-cc2f-4c79-a44f-79add00ec7d4"
],
"metadata": {
{
"dataRows": [
{
"id": "1",
"l7Protocol": "HTTPS",
"request": {
"startTime": 1649638271180,
"connectionId": "0x6C488E5F161A65DA92706",
"domain": "entitlement.diagnostics.office.com.",
"uri": "/v1/supporteligibility",
Get-WmiObject -Class Win32_Product | Select-String "xxxx"
# install eksctl.
$ brew install eksctl
# Create a cluster.
$ eksctl create cluster --name hisashiyamaguchi --fargate --region us-east-2 -p janrain
Assume Role MFA token code:
# Get clusters.
$ eksctl get cluster --region us-east-2 -p janrain
Assume Role MFA token code:
#!/bin/sh
sudo yum -y update
sudo yum -y install firewalld
sudo yum -y install kernel-devel-$(uname -r)
sudo yum -y localinstall http://packetfence.org/downloads/PacketFence/RHEL8/packetfence-release-11.1.el8.noarch.rpm
sudo yum -y install --enablerepo=packetfence packetfence
setspn -A HTTP/hisashiakamai.login.go.akamai-access.com@MINAMINA.LOCAL hisashiyamaguchi
ktpass /out hisashiyamaguchi.keytab /princ HTTP/hisashiakamai.login.go.akamai-access.com@MINAMINA.LOCAL /mapuser minamina@MINAMINA.LOCAL /pass "xxxx!" /crypto All /ptype KRB5_NT_PRINCIPAL
{
"device_posture_signals": "https://signal.dps.akamai-access.com/",
"token_endpoint_auth_methods_supported": [
"client_secret_post",
"client_secret_basic",
"client_secret_jwt"
],
"code_challenge_methods_supported": [
"plain",
"S256"