nice-cat-91582
09/26/2019, 4:44 PM"errorType": "TypeError",
"errorMessage": "Symbol.prototype [ @@toPrimitive ] requires that 'this' be a Symbol"
nice-cat-91582
09/26/2019, 4:45 PMlambda.CallbackFunction
generatesnice-cat-91582
09/26/2019, 4:45 PMnice-cat-91582
09/26/2019, 4:45 PMvar __fn_prototype = {};
Object.defineProperty(__fn_prototype, "constructor", { configurable: true, writable: true, value: __f1 });
__fn.prototype = __fn_prototype;
var __fn_sym = Object.create(global.Symbol.prototype);
__fn[__fn_sym] = __fn;
nice-cat-91582
09/26/2019, 4:45 PMearly-musician-41645
09/26/2019, 5:27 PMawsx
module for creating a Windows ec2 instance. Is there any way to specify that the instance should join a Microsft AD domain?
The domain controller already exists as a managed Microsoft AD directory in AWS. I can get the instance to join "seamlessly" by creating it in the console:
https://docs.aws.amazon.com/directoryservice/latest/admin-guide/launching_instance.html
Or by logging in to the instance and configuring it:
https://docs.aws.amazon.com/directoryservice/latest/admin-guide/join_windows_instance.html
How can I achieve this with Pulumi?quick-australia-29016
09/26/2019, 6:24 PMhandsome-actor-1155
09/26/2019, 6:32 PMbillowy-laptop-45963
09/26/2019, 6:54 PMbillowy-laptop-45963
09/26/2019, 7:36 PMgo test
to see if the tooling versions I have are okshy-daybreak-62210
09/26/2019, 7:55 PMworried-city-86458
09/26/2019, 8:42 PMdamp-book-35965
09/26/2019, 9:12 PMpulumi stack ls
in typescript code currently ?adamant-dress-73325
09/26/2019, 9:27 PMconst vpc = awsx.ec2.Vpc.fromExistingIds("vpc", {
privateSubnetIds: vpcPrivateSubnetIds,
publicSubnetIds: vpcPublicSubnetIds,
vpcId
});
brash-plastic-65797
09/26/2019, 9:52 PMworried-city-86458
09/27/2019, 12:19 AMworried-city-86458
09/27/2019, 12:20 AMworried-city-86458
09/27/2019, 4:57 AMconst monitoringNamespace = new k8s.core.v1.Namespace("monitoring", { metadata: { name: "monitoring" } }, { provider : provider });
function setMonitoringNamespace(obj: any) {
if (obj.metadata.namespace === undefined) {
obj.metadata.namespace = "monitoring";
}
}
const prometheusOperatorChart = new k8s.helm.v2.Chart("po", {
repo: "stable",
chart: "prometheus-operator",
namespace: "monitoring",
transformations: [ setMonitoringNamespace ],
values: {
kubeControllerManager: { enabled: false },
kubeEtcd: { enabled: false },
kubeScheduler: { enabled: false },
kubeTargetVersionOverride: k8sVersion,
prometheusOperator: { createCustomResource: false }
}
}, {
dependsOn: monitoringNamespace,
provider: provider
});
worried-city-86458
09/27/2019, 4:57 AMworried-city-86458
09/27/2019, 5:00 AMworried-city-86458
09/27/2019, 5:01 AMworried-city-86458
09/27/2019, 5:03 AMwarning: extensions/v1beta1/PodSecurityPolicy is not supported by Kubernetes 1.16+ clusters. Use policy/v1beta1/PodSecurityPolicy instead.
limited-rainbow-51650
09/27/2019, 8:04 AMCreate > Deploy > Manage
section of the front page?fancy-translator-86814
09/27/2019, 9:55 AMpulumi up
, I got notification for update:
warning: A new version of Pulumi is available. To upgrade from version '1.1.0' to '1.2.0', run
$ brew upgrade pulumi
or visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
but in actual, when I run brew upgrade pulumi
,
$ brew upgrade pulumi
Error: pulumi 1.1.0 already installed
This is a bit annoying. Is this lag comes from brew?
Is it possible not to show this update message?worried-musician-21478
09/27/2019, 12:26 PMstale-park-1622
09/27/2019, 2:08 PMexport function createApiImage(name: string, port: number, contextDir: string): {repositoryUrl: pulumi.Output<string>, image: awsx.ecr.RepositoryImage} {
const gitCommit = 'e0e5162';
// set up ECR Lifecycle Policies (<https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html>)
// remove any images that are older than one week that are untagged
const repository = new awsx.ecr.Repository(`pulumi-${pulumi.getStack()}-repository`, {
lifeCyclePolicyArgs: {
rules: [{
selection: "untagged",
maximumAgeLimit: 7,
}],
}
});
// And publish its URL, so we can push to it if we'd like.
const repositoryUrl = repository.repository.repositoryUrl;
const build: docker.DockerBuild = {
context: contextDir, // context is a path to a directory to use for the Docker build context
dockerfile: path.join(contextDir, './docker/api.v2.Dockerfile'), // dockerfile may be used to override the default Dockerfile name and/or location
args: {
EXPOSE_PORT: String(port),
},
};
// Invoke 'docker' to actually build the DockerFile that is in the folder relative to
// this program. Once built, push that image up to the ECR repo.
//const image = repository.buildAndPushImage(build);
const image = awsx.ecr.buildAndPushImage(
`${name}:${gitCommit}`,
build,
{
repository: repository.repository,
}
);
return {repositoryUrl, image};
}
→ pulumi up
Previewing update (dev):
Type Name Plan
+ pulumi:pulumi:Stack dev create
+ ├─ awsx:ecr:Repository dev-api-image:e0e5162 create
+ │ └─ aws:ecr:LifecyclePolicy dev-api-image:e0e5162 create
+ └─ awsx:ecr:Repository pulumi-dev-repository create
+ ├─ aws:ecr:Repository pulumi-dev-repository create
+ └─ aws:ecr:LifecyclePolicy pulumi-dev-repository create
Resources:
+ 6 to create
Do you want to perform this update?
yes
> no
details
flat-guitar-86436
09/27/2019, 5:39 PMstale-park-1622
09/27/2019, 5:45 PMconst image = awsx.ecr.buildAndPushImage(
`${name}:${gitCommit}`,
build,
{
repository: repository.repository,
}
);
it always add the 'latest' tag. I want to tag it with a git commit hash. Is there a function like 'tagAndPushImage'?damp-book-35965
09/27/2019, 5:52 PMbillowy-laptop-45963
09/27/2019, 6:30 PM