flaky-laptop-31684
04/13/2023, 9:29 PMfreezing-greece-82130
04/14/2023, 3:56 AMError: invocation of aws:organizations/getOrganization:getOrganization returned an error: invoking aws:organizations/getOrganization:getOrganization: 1 error occurred:
* error listing AWS Organization (o-mbtpj7k2e5) accounts: AccessDeniedException: You don't have permissions to access this resource.
this happens even though I have PowerUserAccess
and AdministratorAccess
. Organization is enabled in my region (us-east-1) and
aws organizations describe-organization
runs fine. has anyone else run into this?
src is just this one-liner
const organization = aws.organizations.getOrganization({});
brief-zebra-95235
04/14/2023, 10:50 AMazure-native:azureactivedirectory:B2CTenant (ActiveDirectory):
error: resource partially created but read failed autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="Resource with ID '496bf099-0f68-467a-bf4c-5b69dedd74db/mrpmorrisdevuksouth/mrpmorrisdev' does not exist." Target="resource": autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="Resource with ID '496bf099-0f68-467a-bf4c-5b69dedd74db/mrpmorrisdevuksouth/mrpmorrisdev' does not exist." Target="resource"
bulky-agent-73210
04/14/2023, 12:44 PMgo.mod
file?blue-painter-86851
04/16/2023, 7:27 PMmagnificent-pillow-80370
04/17/2023, 4:34 PMdef core_network_vpc_attachment_data_per_segment(core_network_segments, region):
"""
Creates a dictionary of segments per vpc per subnets. these are consumed in the vpcattachment to core network
"""
# Instantiate an ec2 client
ec2_client = create_aws_client(service_name="ec2", region=region)
# Parse the segment list
segment_list = []
vpc_corenetwork_attachment_data = {}
for segment_data in core_network_segments:
segment_list.append(segment_data["name"])
# Parse VPCs by the segment
for segment in segment_list:
subnets_per_vpc_per_segment_list = []
vpcs_by_tag = describe_vpcs_by_filter(
ec2_client=ec2_client,
filters=[{
"Name": "tag:core_network_segment",
"Values": [
segment
]
}
]
)
if vpcs_by_tag["Vpcs"]:
# Parse private subnets of a VPC
for vpc in vpcs_by_tag["Vpcs"]:
vpc_and_subnets_data = {}
# vpc id
vpc_id = vpc['VpcId']
# calculating the VPC ARN
vpc_arn = f"arn:aws:ec2:{region}:{vpc['OwnerId']}:vpc/{vpc_id}"
# finding vpc name based on the Name tag
for vpc_tags in vpc["Tags"]:
if vpc_tags["Key"] == "Name":
vpc_name = vpc_tags["Value"]
# Looking for all the private subnets in a vpc. Core Network attachment will be created on these private
# subnets till we get Core subnets in all the VPCs
_subnets = describe_subnet_by_filter(ec2_client=ec2_client, filters=[
{
"Name": "vpc-id",
"Values": [vpc["VpcId"]]
},
{
"Name": "tag:Name",
"Values": ["*private*"]
}
])
# Parsing subnet ARNs for a given VPC
subnets_per_vpc_list = []
for _subnet in _subnets["Subnets"]:
subnets_per_vpc_list.append(_subnet["SubnetArn"])
vpc_and_subnets_data["vpc_name"] = vpc_name
vpc_and_subnets_data["vpc_arn"] = vpc_arn
vpc_and_subnets_data["vpc_id"] = vpc_id
vpc_and_subnets_data["subnet_arn"] = subnets_per_vpc_list
subnets_per_vpc_per_segment_list.append(vpc_and_subnets_data)
if subnets_per_vpc_per_segment_list:
vpc_corenetwork_attachment_data.update({segment: subnets_per_vpc_per_segment_list})
return vpc_corenetwork_attachment_data
which will be used in https://www.pulumi.com/registry/packages/aws/api-docs/networkmanager/vpcattachment/
any help is appreciated.. I started with CDK for Terraform but gave up and now looking at Pulumi.billowy-needle-66127
04/17/2023, 7:45 PMorg/project/stack
, I could run pulumi stack ls
and see all my stacks listed with org/project/stack1
, org/project/stack2
, etc. Additionally in the dashboard the stacks would all be grouped based on the project they were in.
Now when I create a stack in an existing project with org/project/stack
the project
portion seems to be completely ignored. Running pulumi stack ls
only shows org/stack
, my starship module that reports the stack in my terminal prompt only shows org/stack
, and the dashboard no longer groups the stacks by project. The only place I can actually see the project name is in the URL in the dashboard.
This seems like the opposite of what this blog post is saying. Am I missing something or are projects just ignored now? (I understand that org/stack
is a valid reference when in a directory for project
, but that doesn't explain the dashboard portion.)fierce-xylophone-92490
04/17/2023, 11:02 PMfierce-xylophone-92490
04/17/2023, 11:03 PMfierce-xylophone-92490
04/17/2023, 11:07 PMgreat-sunset-355
04/18/2023, 5:04 AM<https://app.pulumi.com/signin?reason=401>
creamy-monkey-35142
04/18/2023, 11:29 AMttl
,currently it’s not really clear
Duration a resource lives in the Cloudflare cache.
positive number - cache for specified duration in seconds
in Terraform have better explain
ttl - (Required) Duration a resource lives in the Cloudflare cache.
positive number - cache for specified duration in seconds
0 - sets no-cache, saved to cache, but expired immediately (revalidate from origin every time)
-1 - sets no-store, never save to cache
like now, I use Cloudflare API and it return data with value
"actions": [
{
"id": "cache_ttl_by_statuses",
"value": {
"302": "no-cache",
"404": "no-cache",
"500": "no-cache",
"522": "no-cache"
}
}
],
and I don’t know the int
number of no-cache
until I checked Terraform documenthallowed-train-1850
04/18/2023, 1:29 PMincalculable-motherboard-30384
04/18/2023, 1:59 PMmysterious-breakfast-62670
04/18/2023, 3:24 PMbusy-electrician-64079
04/18/2023, 5:43 PMdelightful-camera-97029
04/19/2023, 5:30 AMdelightful-camera-97029
04/19/2023, 8:05 AMpulumi up
and all three resources deployed successfully
Now, I modify the pulumi program and it only have
• resource A
• resource B
If I do pulumi destroy
will it destroy all three resource or just the two and leave resource C un handled?bright-orange-69401
04/19/2023, 8:21 AMpulumi-docker
4.x
For one, it seems that Pulumi team created a hashing function that hashes all the Docker context (minus the .dockerignore) before actually running the build with docker’s engine : is there a way to disable this and instead let Docker build the image and compute the actual digest ?
(source: https://github.com/pulumi/pulumi-docker/blob/1966f086164d1e1b87d96c9a9da81efef1167816/provider/provider.go#L162)
In our case, we have a structure like this:
projects/
libs/
So we usually set the Docker context at .
and use multi-stage builds to build our different projects : this way we can share the libs that are built at earlier stages in some of the projects
Although the new docker provider does support the target
argument, the hashContext
function does not care for multi-stage builds : it calculates a single hash for the whole context... no matter which stage we actually intend to build
The other -much more problematic- issue we’re having is that altering a file (such as adding a comment # foo
somewhere) does not trigger an update when running pulumi up
I can’t know for sure what’s happening, but I know for a fact that running docker build
manually does pick up the change and update the digest of the image, whereas pulumi-docker’s pre-hash seems to block the docker engine from actually running
This is preventing us from moving forward on our prod releases 😞
@limited-rainbow-51650 is there anybody at Pulumi that could chime in on this ?little-cartoon-10569
04/20/2023, 2:15 AMlively-easter-36168
04/20/2023, 7:41 AMdry-sugar-28823
04/20/2023, 12:18 PMable-train-72108
04/20/2023, 3:01 PMbrief-car-60542
04/20/2023, 7:04 PM.pulumi/meta.yaml
. but I am still using Pulumi.yaml
How do I fix this issue?
error: read ".pulumi/meta.yaml": blob (key ".pulumi/meta.yaml") (code=Unknown): AccessDenied: Access Denied
status code: 403, request id: 17HDP01KET7A1EEP, host id: 16PJgnCGLXKjxVBzYiqHdYwnrkKH8v3CBp/odlGS9LliZmPA2+rE/Q8xTa8l169CpmXt1MWttHs=
little-library-54601
04/20/2023, 8:04 PMabundant-gigabyte-28496
04/21/2023, 3:45 AMresource complete event returned an error: failed to verify snapshot
on a resource and I can't seem to do anything about it. Any Advice?
I'm not sure what change might have caused it, but I can't even remove the resource nowbright-orange-69401
04/21/2023, 8:52 AMpulumi-docker
as a build system for the containers.
Are there plans to support buildx in pulumi-docker
? 🙏
@orange-policeman-59119 @shy-arm-32391
Also, if anybody has feedback struggling with arm images with their CI I'm happy to discuss it in this thread 🙂better-dentist-3207
04/21/2023, 11:53 AMmammoth-lighter-66042
04/21/2023, 1:36 PMcuddly-king-39663
04/21/2023, 9:45 PM