polite-pillow-78450
09/30/2020, 6:44 PMget_cluster
polite-pillow-78450
09/30/2020, 6:44 PMpolite-pillow-78450
09/30/2020, 6:44 PMimport pulumi_aws as aws
cluster = aws.ecs.get_cluster(cluster_name=‘fargate’)
polite-pillow-78450
09/30/2020, 6:44 PMpolite-pillow-78450
09/30/2020, 6:46 PM$ aws ecs list-clusters
{
“clusterArns”: [
“arn:aws:ecs:us-east-1:XXXXXX:cluster/fargate”,
]
}
polite-pillow-78450
09/30/2020, 6:47 PMpolite-pillow-78450
09/30/2020, 6:50 PMgifted-vase-28337
10/01/2020, 2:45 AMaws:cloudtrail:Trail
.
Error creating CloudTrail: TrailAlreadyExistsException: Trail {trail name} already exists for customer: {account id}
I delete the trail and run pulumi up
again. The trail appears in the AWS console -- it was created by pulumi up
, yet pulumi thinks the trail was there already.
Is this a known issue?agreeable-toddler-25853
10/05/2020, 6:57 AMstrong-musician-98782
10/05/2020, 10:39 AMclever-plumber-29709
10/05/2020, 7:57 PMgorgeous-hospital-30611
10/07/2020, 5:22 PMgifted-vase-28337
10/08/2020, 12:41 AMidentifiers
argument to aws.iam.GetPolicyDocumentStatementPrincipalArgs
expects Sequence[str]
type, rejecting Sequence[Output[str]]
.
How can I use a resource output in generating an input to `aws.iam.GetPolicyDocumentStatementPrincipalArgs`'s identifiers
argument?
pulumi.Output.concat
and pulumi.Output.apply
both return Output[str]
, an incompatible type to str
(per mypy) that causes panic: fatal: A failure has occurred: Unrecognized structpb value kind in RPC...
.quaint-electrician-41503
10/09/2020, 7:00 AMLocalChartOpts(... values = my_s3_bucket.id.apply(lambda id: renderHelmChart(id)),...).
where
def renderHelmChart( uri ) :
loader = FileSystemLoader(/root/path/to/)
values = Env(loader=loader).get_template(file.yaml).render(uri)
return yaml.load(values)
quaint-electrician-41503
10/09/2020, 7:04 AMTypeError: 'NoneType' object is not callable
nutritious-shampoo-16116
10/09/2020, 10:28 AMnutritious-shampoo-16116
10/09/2020, 10:29 AMresource.apply(....do stuf...)
polite-pillow-78450
10/09/2020, 2:43 PMaws.iam.GroupPolicy(f'assume-{self.nickname.lower()}-{role}-role',
name=f'assume{role}role',
group=group,
policy=account.id.apply(lambda account_id: f'''
{{
"Version": "2012-10-17",
"Statement": [
{{
"Action": [
"sts:*"
],
"Resource": "arn:aws:iam::{account_id}:role/{role}",
"Effect": "Allow"
}}
]
}}'''),
opts=ResourceOptions(depends_on=[account]))
role
is a regular string. group
is another resource.
Thanks in advance!worried-queen-62794
10/11/2020, 10:14 PMpulumi-python:dynamic:Resource (GeneratedTemporaryPlatformSSHKey):
error: Exception calling application: There is no current event loop in thread 'ThreadPoolExecutor-0_0'.
worried-plastic-45846
10/12/2020, 3:03 PM# Allow cloudwatch to invoke lambda
lambda_permission = lambda_.Permission(
resource_name=f"{project}-{env}-status-lambda-permissions",
action="lambda:InvokeFunction",
function=status_lambda.name,
principal="<http://events.amazonaws.com|events.amazonaws.com>",
source_arn=event_target.arn
)
A resource is created in the stack, but if I go to the Management Console and check my lambda, there is no trigger configured.
All invocations from Cloudwatch fail. If I proceed to manually create a trigger from the Management Console, everything works as expected.
Do any of you know what's wrong ? Am I maybe using the wrong Pulumi resource type ?strong-musician-98782
10/14/2020, 10:12 AMquaint-electrician-41503
10/14/2020, 4:50 PMagreeable-toddler-25853
10/15/2020, 4:24 PMhandsome-optician-50551
10/16/2020, 10:22 AMbumpy-byte-21437
10/16/2020, 11:21 AMbrash-scientist-65555
10/16/2020, 3:51 PMworried-queen-62794
10/21/2020, 5:35 AMjolly-camera-35709
10/22/2020, 6:29 AMjolly-camera-35709
10/22/2020, 6:29 AMcontainer = containerservice.Group('SpartanBuildContainer',
name='{}-build'.format(project_name),
location=resource_group.location,
resource_group_name=resource_group.name,
ip_address_type="public",
dns_name_label="{}-build".format(project_name),
os_type="Linux",
containers=[
containerservice.GroupContainerArgs(
name='{}-build'.format(project_name),
image='{}/{}-build:{}'.format(container_registry.login_server,
project_name,
get_image_tag_stdout),
cpu=1,
memory=1.5,
jolly-camera-35709
10/22/2020, 6:30 AMjolly-camera-35709
10/22/2020, 6:30 AM