Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/e2e-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ on:
- comprehensive-rust
- comprehensive-ts
- full-stack-microservices
- enabled-demo
- command-routing-ts
- container-rust
- runtime-less-mixed
Expand Down Expand Up @@ -359,6 +360,11 @@ jobs:
TERRAFORM_ENTRIES=$(echo "$TERRAFORM_ENTRIES" | jq -c '. + [{"name":"terraform-aks-helm-pull-comprehensive-rust","test_filter":"terraform_aks_helm_pull_comprehensive_rust","needs_oidc":true,"resource_suffix":"tfakscr"}]')
fi
fi
if [ "$APP" = "All" ] || [ "$APP" = "enabled-demo" ]; then
if [ "$PUSH_AWS_TERRAFORM" = "true" ]; then
TERRAFORM_ENTRIES=$(echo "$TERRAFORM_ENTRIES" | jq -c '. + [{"name":"terraform-aws-push-enabled-demo","test_filter":"terraform_aws_push_enabled_demo","needs_oidc":false,"resource_suffix":"tfawsed","bindings_arch":"aarch64"}]')
fi
fi
if [ "$APP" = "All" ] || [ "$APP" = "full-stack-microservices" ]; then
if [ "$KUBERNETES_AWS_TERRAFORM_HELM" = "true" ]; then
TERRAFORM_ENTRIES=$(echo "$TERRAFORM_ENTRIES" | jq -c '. + [{"name":"terraform-eks-helm-pull-full-stack-microservices","test_filter":"terraform_eks_helm_pull_full_stack_microservices","needs_oidc":false,"resource_suffix":"tfeksfs","bindings_arch":"aarch64"}]')
Expand Down
8 changes: 8 additions & 0 deletions crates/alien-cloudformation/src/emitters/aws/vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ impl CfEmitter for AwsVaultEmitter {
]))
}

/// The vault is a Parameter Store name prefix, so the only resources this
/// emitter returns are the IAM policies granting access to it. The generator
/// stamps the gate's `Condition` onto each of them, so declining the vault
/// also withholds the grants.
fn supports_enabled_when(&self) -> bool {
true
}

fn emit_binding_ref(&self, ctx: &EmitContext<'_>) -> Result<Option<CfExpression>> {
let vault = resource_config::<Vault>(ctx, Vault::RESOURCE_TYPE)?;
Ok(Some(CfExpression::object([
Expand Down
2 changes: 1 addition & 1 deletion crates/alien-cloudformation/tests/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ mod generator {
pub mod aws_email_tests;
pub mod aws_full_stack_tests;
pub mod aws_open_search_tests;
pub mod enabled_queue_tests;
pub mod enabled_storage_tests;
pub mod enabled_tests;
pub mod enabled_vault_queue_tests;
pub mod kubernetes_cluster_tests;
pub mod network_tests;
pub mod output_chunking_tests;
Expand Down
278 changes: 0 additions & 278 deletions crates/alien-cloudformation/tests/generator/enabled_queue_tests.rs

This file was deleted.

Loading
Loading