Skip to content

Instantly share code, notes, and snippets.

View jorgeancal's full-sized avatar

Jorge Andreu Calatayud jorgeancal

View GitHub Profile
@jorgeancal
jorgeancal / aws-monitoring-account.tf
Last active October 12, 2023 13:01
Create a Centralised AWS Monitoring Account.
data "aws_organizations_organization" "current" {}
data "aws_region" "this" {}
resource "aws_oam_sink" "monitoring_account_oam_sink" {
name = "AWSoamSinkObservabilityMonitoring"
}
resource "aws_oam_sink_policy" "monitoring_account_oam_sink_policy" {
sink_identifier = aws_oam_sink.monitoring_account_oam_sink.id
@jorgeancal
jorgeancal / github.tf
Last active October 13, 2023 07:30
GitHub Creation of Teams and Add members
# variables.tf
variable "teams" {
type = map(object({
description = string
members = list(object({
username = string
role = string
}))
}))
description = "Map of team names and members"
@jorgeancal
jorgeancal / updateApacheTLSv1.2InCentOS5.sh
Created September 28, 2020 14:31
update Apache to use TLSv1.2 In CentOS 5
#!/bin/bash
set -e
release=$(lsb_release -d | awk -F"\t" '{print $2}')
centos="CentOS"
if [[ "$release" =~ .*"$centos".* ]];
then
echo "You are in " + $release