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
name: 'Terraform Plan' | |
on: | |
- pull_request | |
permissions: | |
id-token: write | |
contents: write | |
issues: write | |
pull-requests: write |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Note | |
# https://gist.github.com/gbaman/b3137e18c739e0cf98539bf4ec4366ad#gistcomment-2963016 | |
from requests import exceptions, request | |
class GitHubQuery: | |
BASE_URL = "https://api.github.com/graphql" |
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
#!/usr/bin/env bash | |
# -*- coding: utf-8 -*- | |
from github import Github | |
def get_members(token, organization): | |
github = Github(token) | |
org = github.get_organization(organization) |
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
service: | |
name: ${self:custom.serviceName} | |
provider: | |
name: aws | |
apiName: ${self:custom.serviceName}-API | |
endpointType: REGIONAL | |
apiKeys: | |
- ${self:custom.serviceName} | |
runtime: python3.7 |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
from dotenv import load_dotenv | |
from pathlib import Path | |
from botocore.exceptions import ClientError | |
import boto3 | |
import json |
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
name: serverless deploy | |
on: [push] | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
steps: |
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
name: 'Terraform GitHub Actions apply' | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
terraform: | |
name: 'Terraform' | |
runs-on: ubuntu-latest | |
steps: |
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
version: 2 | |
defaults: &defaults | |
docker: | |
- image: hashicorp/terraform:0.11.13 | |
environment: | |
AWS_DEFAULT_REGION: ap-northeast-1 | |
tfnotify_install: &tfnotify_install | |
name: tfnotify install |
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
version: 2.1 | |
executors: | |
default: | |
working_directory: ~/aws-terraform | |
docker: | |
- image: hashicorp/terraform:light | |
commands: | |
install_tfnotify: |
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
module "ec2_test" { | |
source = "terraform-aws-modules/ec2-instance/aws" | |
version = "1.21.0" | |
name = "ec2-test" | |
instance_count = 1 | |
ami = "ami-0b8d0d6ac70e5750c" #amzn2-ami-hvm-2.0.20181114-x86_64-ebs | |
instance_type = "t2.micro" | |
key_name = "test-key" | |
monitoring = false | |
vpc_security_group_ids = ["<vpc_security_group_ids>"] |
NewerOlder