Skip to content

Instantly share code, notes, and snippets.

View yuklia's full-sized avatar
🇺🇦

Yuliia Kostrikova yuklia

🇺🇦
View GitHub Profile
2022-10-25T15:30:06.682+0200 [INFO] backend/local: apply calling Apply
2022-10-25T15:30:06.682+0200 [DEBUG] Building and walking apply graph for NormalMode plan
2022-10-25T15:30:06.683+0200 [DEBUG] Resource state not found for node "module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type", instance module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type
2022-10-25T15:30:06.683+0200 [DEBUG] Resource state not found for node "module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts[\"heathy_hosts_in_target_group\"]", instance module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts["heathy_hosts_in_target_group"]
2022-10-25T15:30:06.683+0200 [DEBUG] ProviderTransformer: "module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts[\"heathy_hosts_in_target_group\"]" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io

Keybase proof

I hereby claim:

  • I am yuklia on github.
  • I am yuklia (https://keybase.io/yuklia) on keybase.
  • I have a public key ASCFw-teQqzdJ8aOZnqkBGLWjB3XXmt7LgEs35SrJJrp-go

To claim this, I am signing this object:

@yuklia
yuklia / ebs_snapshots
Created November 23, 2020 10:00
Create ebs snapshots with retention time
import json, boto3
from datetime import datetime
from tag_name import TagName
'''
ebs_backups = EBSBackup()
ebs_backups.create_snapshots()
'''
class EBSBackup(object):
@yuklia
yuklia / SSL_ERROR_RX_RECORD_TOO_LONG
Created September 16, 2020 09:42
SSL_ERROR_RX_RECORD_TOO_LONG
!!! Message from the past
!!! USE ProxyProtocol if you are behind external LB. I spend whole day to realize that.
version: "3.4"
services:
traefik:
image: ${REGISTRY}/traefik:v15-${SERVER_ENV}
build: ./traefik
hostname: "traefik"
'''
Test cases
a = [123, 4, 5]
b = [100, 100, 100]
a = [9876, 5432, 1999]
b = [1, 8001]
a = [1]
b = [9999, 9999, 9999, 9999, 9999, 9999]
# Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources.
# When you specify an existing tag key, the value is overwritten with the new value
from datetime import datetime
client = boto3.client('ec2')
timestamp = datetime.timestamp(datetime.now())
response = client.create_tags(
Resources=[
'vol-01e66940668c0bda8',
# Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources.
# When you specify an existing tag key, the value is overwritten with the new value
client = boto3.client('ec2')
response = client.create_tags(
Resources=[
'vol-01e66940668c0bda8',
],
Tags=[
{
[13-Dec-2019 04:33:01.540471] DEBUG: pid 1, fpm_got_signal(), line 89: received SIGQUIT
04:33:01
[13-Dec-2019 04:33:01.540494] NOTICE: pid 1, fpm_got_signal(), line 90: Finishing ...
04:33:01
[13-Dec-2019 04:33:01.540503] DEBUG: pid 1, fpm_pctl(), line 230: switching to 'finishing' state
04:33:01
[13-Dec-2019 04:33:01.540529] DEBUG: pid 1, fpm_pctl_kill_all(), line 158: [pool www] sending signal 3 SIGQUIT to child 16485
[13-Dec-2019 04:33:01.540471] DEBUG: pid 1, fpm_got_signal(), line 89: received SIGQUIT
04:33:01
[13-Dec-2019 04:33:01.540494] NOTICE: pid 1, fpm_got_signal(), line 90: Finishing ...
04:33:01
[13-Dec-2019 04:33:01.540503] DEBUG: pid 1, fpm_pctl(), line 230: switching to 'finishing' state
04:33:01
[13-Dec-2019 04:33:01.540529] DEBUG: pid 1, fpm_pctl_kill_all(), line 158: [pool www] sending signal 3 SIGQUIT to child 16485
[13-Dec-2019 04:33:01.540471] DEBUG: pid 1, fpm_got_signal(), line 89: received SIGQUIT
04:33:01
[13-Dec-2019 04:33:01.540494] NOTICE: pid 1, fpm_got_signal(), line 90: Finishing ...
04:33:01
[13-Dec-2019 04:33:01.540503] DEBUG: pid 1, fpm_pctl(), line 230: switching to 'finishing' state
04:33:01
[13-Dec-2019 04:33:01.540529] DEBUG: pid 1, fpm_pctl_kill_all(), line 158: [pool www] sending signal 3 SIGQUIT to child 16485