- Original Author(s):: @hassaku63
- Tracking Issue: #512
- API Bar Raiser: -
Allow the OpenIdConnectProvider construct to internally use the native CloudFormation Resource AWS::IAM::OIDCProvider.
| #!/usr/bin/env node | |
| import 'source-map-support/register'; | |
| import * as cdk from 'aws-cdk-lib'; | |
| import { IConstruct } from 'constructs'; | |
| import { MyStack } from '../lib/my-stack'; | |
| const app = new cdk.App(); | |
| const availableStages = ['dev', 'stg', 'prod'] as const; | |
| type Stage = typeof availableStages[number]; |
| aws ecr get-login-password --region ${aws_region} | docker login --username AWS --password-stdin ${aws_account_id}.dkr.ecr.$aws_region.amazonaws.com | |
| docker build -t ${image_name} . | |
| docker tag ${image_name}:$image_tag ${aws_account_id}.dkr.ecr.$aws_region.amazonaws.com/${image_name}:$image_tag | |
| docker push ${aws_account_id}.dkr.ecr.${aws_region}.amazonaws.com/${image_name}:$image_tag |
| import { | |
| CodePipelineClient, | |
| StartPipelineExecutionCommand, | |
| StartPipelineExecutionCommandOutput, | |
| ConflictException, | |
| } from "@aws-sdk/client-codepipeline"; | |
| type StartPipelineExecutionResultFailed = { | |
| success: false, | |
| error: Error, |
URL: https://score.beginners.seccon.jp/
今回 CTF 初挑戦だったので、やってたこと、考えてたことなどを雑にメモっていく場所。
マジで何もわかっていないで書いてるので、(これを見てしまった人向けに)正解にたどり着きたい人、参考情報を得たい人が見るような「資料」じゃないことを予め断っておく。
自分が何考えてたのかをある程度 dump したものであって、バックグラウンドを理解して書いてるものではない。
| package main | |
| import ( | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/lambda" | |
| "github.com/aws/aws-sdk-go/service/sts" | |
| ) | |
| func main() { |
| from enum import Enum | |
| from functools import wraps | |
| def assert_simgle_char(f): | |
| @wraps(f) | |
| def inner(c: str): | |
| if len(c) != 1: | |
| raise ValueError(c) | |
| return f(c) |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| typeSwitch := func(v interface{}) { | |
| switch v.(type) { |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "sort" | |
| ) | |
| type Person struct { |
| use std::fmt; | |
| struct Circle { | |
| radius: u32 | |
| } | |
| impl Circle { | |
| fn diameter(&self) -> u32 { | |
| self.radius * 2 | |
| } |