Skip to content

Instantly share code, notes, and snippets.

@dragonfly-net
dragonfly-net / prometheus
Created May 5, 2019 15:11 — forked from JoergM/prometheus
Prometheus init file for RHEL 5 or 6
#!/bin/bash
#
# /etc/rc.d/init.d/prometheus
#
# Prometheus monitoring server
#
# chkconfig: 2345 20 80 Read
# description: Prometheus monitoring server
# processname: prometheus
@dragonfly-net
dragonfly-net / alertmanager
Created May 5, 2019 15:11 — forked from JoergM/alertmanager
Init file for Prometheus Alertmanager for RHEL 5 or 6
#!/bin/bash
#
# /etc/rc.d/init.d/alertmanager
#
# Alertmanager for Prometheus.
#
# chkconfig: 2345 20 80 Read
# description: Alertmanager for Prometheus.
# processname: alertmanager
@dragonfly-net
dragonfly-net / vpc.yaml
Created October 21, 2019 14:32 — forked from gmr/vpc.yaml
Demonstration CloudFormation YAML template for creating a VPC
AWSTemplateFormatVersion: '2010-09-09'
Description: VPC Network Stack
Metadata: {}
Mappings: {}
Conditions: {}
Outputs: {}
Parameters:
CidrBlock:
AllowedPattern: '((\d{1,3})\.){3}\d{1,3}/\d{1,2}'
Default: 10.0.0.0/16
@dragonfly-net
dragonfly-net / build.py (eks)
Created January 16, 2020 09:41 — forked from pit/build.py (eks)
CloudFormation Samples
from navio.aws import AWSCloudFormation, AWSLogs, AWSACM
from navio.builder import task, nsh, sh
aws_stack = dict()
aws_stack_ro = dict()
aws_stack_ro['vpc.dev'] = AWSCloudFormation(
profile_name='company.dev',
stack_name='Vpc'
)
1. Создадим сервисный аккаунт:
yc iam service-account create --name service
2. Добавим роль нашему сервисному аккаунту:
yc resource-manager folder add-access-binding default \
--role editor \
--subject serviceAccount:<ID_SERVICE_ACCOUNT>
3. Создадим ключи доступа для аккаунта service:
yc iam access-key create --service-account-name service \