AWS
When You Keep Getting a 405 (Method Not Allowed) Error with AWS Load Balancer
At our company, there was a task to create an API for webhooks on the API server, resulting in the creation of a webhook endpoint that receives POST requests. However, although the server sending the request was indeed sending POST requests correctly, the receiving server’s logs showed a 405 (Method Not Allowed) error. Cause When using an AWS Load Balancer, there is a feature for redirecting HTTP requests to HTTPS.
November 23, 2023
Automatically Start and Stop AWS ECS Services via Github Actions
As we wrapped up the Plog (“Blogging project for developers”) deployed on AWS ECS, I wanted a way to variably manage server maintenance costs. (This project was started for educational purposes, not to maintain a service for profit, so saving money is a priority..) Though ECS costs were not significant, I still thought it was unnecessary to maintain it aimlessly. However, to ensure that team members can use it as a portfolio whenever they’re transitioning jobs, I planned to devise a way to start up and shut down the API servers.
October 18, 2023
How to Efficiently Manage Local Secrets Using AWS Secrets Manager
When sharing secrets locally within a company, it’s common to exchange them via messengers like Slack or KakaoTalk. The reasons often include: The need to update existing local secrets due to changes Setting up initial secrets for new hires This method leaves sensitive secret information on shared channels like messengers and isn’t optimal from various security perspectives. AWS Secret GeneratorSo, I created a simple CLI tool using Golang. It pulls secrets stored in AWS Secrets Manager through a straightforward CLI interface and can fetch them as files locally.
September 23, 2023
Managing Config Files in AWS Using AWS Secrets Manager
Introduction There is an aspect I haven’t paid much attention to, but it’s always been a bit inconvenient. It’s about storing all the secrets used on the server in a file called config.yaml. I began to question, “Is it really right to store them as source files on GitHub?” GitHub also offers a feature called GitHub Secrets to manage various secrets used in the repository, but it felt somewhat exposed.
March 1, 2023