This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as aws from '@pulumi/aws'; | |
const defaultTags = { Creator: 'pulumi' }; | |
const timUser = new aws.iam.User('tim.myers', { | |
name: 'tim.myers', | |
tags: defaultTags, | |
}); | |
new aws.iam.UserPolicyAttachment('tim.myers-readonly', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as aws from '@pulumi/aws'; | |
const defaultTags = { Creator: 'pulumi' }; | |
const awsAccountId = pulumi.output(aws.getCallerIdentity()).accountId; | |
const infrastructureRole = new aws.iam.Role('infrastructure', { | |
name: 'infrastructure', | |
assumeRolePolicy: { | |
Version: '2012-10-17', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as aws from '@pulumi/aws'; | |
const defaultTags = { Creator: 'pulumi' }; | |
const timUser = new aws.iam.User('tim.myers', { | |
name: 'tim.myers', | |
tags: defaultTags, | |
}); | |
new aws.iam.UserPolicyAttachment('tim.myers-admin', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as aws from '@pulumi/aws'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as aws from '@pulumi/aws'; | |
const timUser = new aws.iam.User('tim.myers', { | |
name: 'tim.myers', | |
}, { import: 'tim.myers'}); | |
new aws.iam.UserPolicyAttachment('tim.myers-admin', { | |
user: timUser.name, | |
policyArn: aws.iam.getPolicyOutput({ name: 'AdministratorAccess'}).arn, | |
}, { import: 'tim.myers/arn:aws:iam::aws:policy/AdministratorAccess' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
const instance = axios.create({ | |
baseURL: 'https://eth2-beacon-pyrmont.infura.io/', | |
auth: { | |
username: process.env.INFURA_PROJECT_ID, | |
password: '', | |
}, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as pulumi from '@pulumi/pulumi'; | |
import * as aws from '@pulumi/aws'; | |
import * as datadog from '@pulumi/datadog'; | |
export class MutatedResource extends pulumi.ComponentResource { | |
public constructor(name: string, args: {}, opts?: pulumi.ComponentResourceOptions) { | |
super('test:mutation', name, {}, opts); | |
// Totally reasonable shared options | |
const defaultOpts: pulumi.CustomResourceOptions = { parent: this }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as pulumi from '@pulumi/pulumi'; | |
import * as ocean from '@pulumi/digitalocean'; | |
interface Options { | |
} | |
class ContainerRegistry extends pulumi.ComponentResource { | |
public name: pulumi.Output<string>; | |
public username: pulumi.Output<string>; | |
public password: pulumi.Output<string>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure x is a true output so pulumi doesn't try to run this function during preview. | |
const ingressIP = pulumi.all([x]).apply(async ([x]) => { | |
const kc = new k8sClient.KubeConfig(); | |
const provider = (this.getProvider('kubernetes::') as any) | |
const kubeConfig = provider.kubeconfig as pulumi.Output<string>; | |
const ip = kubeConfig.apply(async (config) => { | |
kc.loadFromString(config); | |
const k8sApi = kc.makeApiClient(k8sClient.CoreV1Api); |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020/05/06 17:05:22 proto: duplicate proto type registered: ethereum.beacon.rpc.v1.BeaconStateRequest | |
2020/05/06 17:05:22 maxprocs: Updating GOMAXPROCS=4: determined from CPU quota | |
{"level":"warning","msg":"Using schlesi testnet config","prefix":"flags","time":"2020-05-06T17:05:22Z"} | |
{"level":"warning","msg":"Enabling experimental memory management for beacon state","prefix":"flags","time":"2020-05-06T17:05:22Z"} | |
{"database-path":"/db/beaconchaindata","level":"info","msg":"Checking DB","prefix":"node","time":"2020-05-06T17:05:22Z"} | |
{"level":"error","msg":"Invalid address of enr:-LK4QJS5Rn_kkA2MQpieVDUao5vkBj3kE15S_JJepGA9MNfndwHyfBWSjmAa5T_qvkGklrDiZXqlIAahXTm_eH_IXY8Ch2F0dG5ldHOIAAAAAAAAAACEZXRoMpCZJe_WAAAAAP__________gmlkgnY0gmlwhDMPd52Jc2VjcDI1NmsxoQOS1-hRSwsxLo2PH3RKtwWdjLdT1IMX2nqkQAlHs5E7LIN0Y3CCMsiDdWRwgi7 provided","prefix":"p2p","time":"2020-05-06T17:05:22Z"} | |
{"level":"warning","msg":"No bootstrap addresses supplied","prefix":"p2p","time":"2020-05-06T17:05:22Z"} | |
{"level":"info","msg":"Starting beacon |