Skip to content

Instantly share code, notes, and snippets.

View brunapereira's full-sized avatar

Bruna Pereira brunapereira

View GitHub Profile
type AxiosConfigWithMetadata = InternalAxiosRequestConfig & {
metadata?: {
axiosId: string
}
}
const interceptRequest = (config: AxiosConfigWithMetadata) => {
const axiosId = uuidV4();
logger.debug("outbound request", {
module "team" {
admin-members = [
"brunapereira"
]
engineer-members = [
"ebragaparah"
]
source = "./team"
variable "name" {
description = "Name of the repository"
type = string
}
variable "description" {
description = "Description of the repository"
type = string
}
resource "github_repository" "repository" {
name = var.name
description = var.description
visibility = "private"
has_issues = true
delete_branch_on_merge = true
auto_init = true
}
@brunapereira
brunapereira / main.tf
Created April 11, 2021 20:36
main terraform with project module
module "team" {
admin-members = [
"brunapereira"
]
engineer-members = [
"ebragaparah"
]
source = "./team"
@brunapereira
brunapereira / main.tf
Created April 11, 2021 20:00
Module team - start
module "team" {
source = "./team"
}
@brunapereira
brunapereira / main.tf
Created April 11, 2021 19:48
team main with membership
resource "github_team" "engineers-team" {
name = "Engineers"
description = "organization engineers"
privacy = "closed"
}
resource "github_team" "admins-team" {
name = "Admins"
description = "organization admins"
privacy = "closed"
@brunapereira
brunapereira / varibales.tf
Created April 11, 2021 19:40
team variables.tf
variable "engineer-members" {
type = set(string)
description = "List of github users that belong to engineers team"
}
variable "admin-members" {
type = set(string)
description = "List of github users that belong to admins team"
}
@brunapereira
brunapereira / main.tf
Created April 11, 2021 19:37
main with team variables
module "team" {
admin-members = [
"brunapereira"
]
engineer-members = [
"ebragaparah"
]
source = "./team"
@brunapereira
brunapereira / main.tf
Last active April 11, 2021 13:50
team resource
resource "github_team" "engineers-team" {
name = "Engineers"
description = "organization engineers"
privacy = "closed"
}