broad-dog-22463
08/05/2019, 8:40 AMglamorous-waitress-51149
08/05/2019, 8:40 AMbroad-dog-22463
08/05/2019, 8:41 AMbroad-dog-22463
08/05/2019, 8:41 AMbroad-dog-22463
08/05/2019, 8:42 AMbroad-dog-22463
08/05/2019, 8:42 AMbroad-dog-22463
08/05/2019, 8:42 AMglamorous-waitress-51149
08/05/2019, 8:42 AMbroad-dog-22463
08/05/2019, 8:43 AMbroad-dog-22463
08/05/2019, 8:43 AMtype Target struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the target.
//
// Arn is a required field
Arn *string `min:"1" type:"string" required:"true"`
// If the event target is an AWS Batch job, this contains the job definition,
// job name, and other parameters. For more information, see Jobs (<https://docs.aws.amazon.com/batch/latest/userguide/jobs.html>)
// in the AWS Batch User Guide.
BatchParameters *BatchParameters `type:"structure"`
// Contains the Amazon ECS task definition and task count to be used if the
// event target is an Amazon ECS task. For more information about Amazon ECS
// tasks, see Task Definitions (<https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html>)
// in the Amazon EC2 Container Service Developer Guide.
EcsParameters *EcsParameters `type:"structure"`
// The ID of the target.
//
// Id is a required field
Id *string `min:"1" type:"string" required:"true"`
// Valid JSON text passed to the target. In this case, nothing from the event
// itself is passed to the target. For more information, see The JavaScript
// Object Notation (JSON) Data Interchange Format (<http://www.rfc-editor.org/rfc/rfc7159.txt>).
Input *string `type:"string"`
// The value of the JSONPath that is used for extracting part of the matched
// event when passing it to the target. You must use JSON dot notation, not
// bracket notation. For more information about JSON paths, see JSONPath (<http://goessner.net/articles/JsonPath/>).
InputPath *string `type:"string"`
// Settings to enable you to provide custom input to a target based on certain
// event data. You can extract one or more key-value pairs from the event and
// then use that data to send customized input to the target.
InputTransformer *InputTransformer `type:"structure"`
// The custom parameter that you can use to control the shard assignment when
// the target is a Kinesis data stream. If you don't include this parameter,
// the default is to use the eventId as the partition key.
KinesisParameters *KinesisParameters `type:"structure"`
// The Amazon Resource Name (ARN) of the IAM role to be used for this target
// when the rule is triggered. If one rule triggers multiple targets, you can
// use a different IAM role for each target.
RoleArn *string `min:"1" type:"string"`
// Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
RunCommandParameters *RunCommandParameters `type:"structure"`
// Contains the message group ID to use when the target is a FIFO queue.
//
// If you specify an SQS FIFO queue as a target, the queue must have content-based
// deduplication enabled.
SqsParameters *SqsParameters `type:"structure"`
}
glamorous-waitress-51149
08/05/2019, 8:43 AMbroad-dog-22463
08/05/2019, 8:45 AMglamorous-waitress-51149
08/05/2019, 8:45 AMglamorous-waitress-51149
08/05/2019, 8:45 AMbroad-dog-22463
08/05/2019, 8:46 AMinput - (Optional) Valid JSON text passed to the target.
broad-dog-22463
08/05/2019, 8:46 AMbroad-dog-22463
08/05/2019, 8:46 AMbroad-dog-22463
08/05/2019, 8:46 AMglamorous-waitress-51149
08/05/2019, 8:46 AMbroad-dog-22463
08/05/2019, 8:46 AMglamorous-waitress-51149
08/05/2019, 8:46 AMbroad-dog-22463
08/05/2019, 8:46 AMbroad-dog-22463
08/05/2019, 8:46 AMNote: In order to be able to have your AWS Lambda function or SNS topic invoked by a CloudWatch Events rule, you must setup the right permissions using aws_lambda_permission or aws_sns_topic.policy. More info here.
glamorous-waitress-51149
08/05/2019, 8:47 AMbroad-dog-22463
08/05/2019, 8:47 AMbroad-dog-22463
08/05/2019, 8:47 AMthankful-optician-22583
08/05/2019, 4:21 PMconst image = new docker.Image(applicationName, {
imageName: config.require("ecr-server"),
build: "./app",
registry: {
server: config.require("ecr-server"),
username: config.require("ecr-username"),
password: config.require("ecr-password")
}
});
But when I want to use it for deployment of Kubernetes I notice there is a ImagePullBackOff
error.
const deployment = new k8s.apps.v1.Deployment(applicationName, {
apiVersion: "apps/v1",
kind: "Deployment",
metadata: {
name: applicationName
},
spec: {
selector: { matchLabels: appLabels },
template: {
metadata: { labels: appLabels },
spec: {
containers: [
{
name: applicationName,
image: image.imageName
}
]
}
}
}
});
When I investigated further using kubectl describe po
I see this error Failed to pull image "IMAGE": rpc error: code = Unknown desc = Error response from daemon: Get https//IMAGE: no basic auth credentials
How do i pass in the aws credentials to the “pulumi/kubernetes” object so that the deployment has access to the ecr?salmon-account-74572
08/07/2019, 3:01 PMgetAvailabilityZones
function in pulumi/@aws
shows the use of the output
function to access the data returned by the function. However, the only way I was able to make it work was without the output
function, like so:
const rawAzInfo = aws.getAvailabilityZones({
state: "available",
});
let azNames: Array<string> = rawAzInfo.names;
let numberOfAZs: number = azNames.length;
Am I missing/overlooking/not understanding something? Or is this an error in the docs?boundless-monkey-50243
08/07/2019, 6:01 PMaws.lambda.CallbackFunction
? Pulumi's own packages are being transitively included somehow (I am legit unclear as to why, as while some types from @pulumi/aws
are being used there is no code being used) and I can't seem to adequately exclude them via codePathOptions
.salmon-account-74572
08/07/2019, 6:46 PMlet bastionType = "t2.small";
let bastion_instance = new aws.ec2.Instance("bastion", {
instanceType = bastionType,
});
This doesn't work (instanceType
requires type Input, but I can't seem to declare my variable as that type).